Skip to content

Commit

Permalink
config check bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Loschcode committed Nov 6, 2019
1 parent 43f7dea commit 8055f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ VueMixpanel.install = function (Vue, { config, token }) {
Vue.prototype.$mixpanel = Mixpanel.init(token)

const endConfig = config || {}
if (endConfig.length > 0) Vue.prototype.$mixpanel.set_config(endConfig)
if (Object.keys(endConfig).length > 0) Vue.prototype.$mixpanel.set_config(endConfig)
}

export default VueMixpanel

0 comments on commit 8055f2c

Please sign in to comment.