diff --git a/src/renderer/plugins/mixins/index.js b/src/renderer/plugins/mixins/index.js index f89a268c..ead84b16 100644 --- a/src/renderer/plugins/mixins/index.js +++ b/src/renderer/plugins/mixins/index.js @@ -183,8 +183,7 @@ Vue.mixin({ await this.$cookies.remove('cs_locker_token') this.$store.commit('CLEAR_ALL_DATA') this.$router.push(this.localeRoute({ name: 'index' })) - // TODO - // window.$chatwoot?.reset() + window.$chatwoot?.reset() }, async lock () { diff --git a/src/renderer/static/js/chatwoot.js b/src/renderer/static/js/chatwoot.js index c1cbf785..73c46596 100644 --- a/src/renderer/static/js/chatwoot.js +++ b/src/renderer/static/js/chatwoot.js @@ -14,6 +14,6 @@ })(document, 'script') window.chatwootSettings = { - baseDomain: '.locker.io', - darkMode: 'auto' + baseDomain: '.locker.io' + // darkMode: 'auto' } diff --git a/src/renderer/store/index.js b/src/renderer/store/index.js index a5b37011..12c88dee 100644 --- a/src/renderer/store/index.js +++ b/src/renderer/store/index.js @@ -295,13 +295,11 @@ export const actions = { console.log('Ignore Chatwoot') return } - return {} - // TODO - // return this.$axios - // .$get('cystack_platform/pm/users/me/chatwoot') - // .then(res => { - // commit('UPDATE_USER_CHATWOOT', res) - // }).catch(() => {}) + return this.$axios + .$get('cystack_platform/pm/users/me/chatwoot') + .then(res => { + commit('UPDATE_USER_CHATWOOT', res) + }).catch(() => {}) }, LoadNotification ({ commit }) { // const user = context.state.user