Skip to content

Commit

Permalink
fix: 🐛 reset intercom
Browse files Browse the repository at this point in the history
  • Loading branch information
kvhnuke committed Sep 24, 2021
1 parent a4fd7ab commit 11d6e0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import './main/matomo';

import Vue from 'vue';
import Router from 'vue-router';
import { v4 as uuidv4 } from 'uuid';

import VueIntercom from '@mathieustan/vue-intercom';

Expand Down Expand Up @@ -52,14 +53,12 @@ new Vue({
apolloProvider,
vuetify,
beforeCreate() {
this.$intercom.boot();
this.$intercom.shutdown();
this.$intercom.boot({
user_id: uuidv4()
});
this.$store.commit('global/INIT_STORE');
this.$store.commit('notifications/INIT_STORE');
this.$store.dispatch('global/setTracking');
},
created() {
this.$intercom.boot();
},
render: h => h(app)
});
1 change: 1 addition & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const webpackConfig = {
devServer: {
https: true,
host: 'localhost',
publicPath: '/testme/',
hotOnly: true,
port: 8080,
headers: {
Expand Down

0 comments on commit 11d6e0c

Please sign in to comment.