Skip to content

Commit 8055f2c

Browse files
committed
config check bug
1 parent 43f7dea commit 8055f2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ VueMixpanel.install = function (Vue, { config, token }) {
1414
Vue.prototype.$mixpanel = Mixpanel.init(token)
1515

1616
const endConfig = config || {}
17-
if (endConfig.length > 0) Vue.prototype.$mixpanel.set_config(endConfig)
17+
if (Object.keys(endConfig).length > 0) Vue.prototype.$mixpanel.set_config(endConfig)
1818
}
1919

2020
export default VueMixpanel

0 commit comments

Comments
 (0)