From 1d433db5c6c22d375b25fcc5325c8fbf244f3aee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= <1005065+DeepDiver1975@users.noreply.github.com> Date: Tue, 23 Feb 2021 22:17:14 +0100 Subject: [PATCH] fix: set the configuration within the init call right away --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index c6db70d..73a6d0a 100644 --- a/index.js +++ b/index.js @@ -18,8 +18,7 @@ VueMixpanel.install = function (Vue, { config, token }) { const defaultConfig = {} const endConfig = Object.assign(config, defaultConfig) - Vue.prototype.$mixpanel.init(token) - Vue.prototype.$mixpanel.set_config(endConfig) + Vue.prototype.$mixpanel.init(token, endConfig) } export default VueMixpanel