We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43f7dea commit 8055f2cCopy full SHA for 8055f2c
index.js
@@ -14,7 +14,7 @@ VueMixpanel.install = function (Vue, { config, token }) {
14
Vue.prototype.$mixpanel = Mixpanel.init(token)
15
16
const endConfig = config || {}
17
- if (endConfig.length > 0) Vue.prototype.$mixpanel.set_config(endConfig)
+ if (Object.keys(endConfig).length > 0) Vue.prototype.$mixpanel.set_config(endConfig)
18
}
19
20
export default VueMixpanel
0 commit comments