Skip to content

Commit 12b1999

Browse files
committed
revert: ⏪️ intercom changes
1 parent baca466 commit 12b1999

File tree

6 files changed

+16
-126
lines changed

6 files changed

+16
-126
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
### Release v6.6.3-hotfix.1
12
### fix
23

34
* fix banner link, redo intercom [#4072](https://github.com/MyEtherWallet/MyEtherWallet/pull/4072)

package-lock.json

Lines changed: 5 additions & 80 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "myetherwallet",
3-
"version": "6.6.3",
3+
"version": "6.6.3-hotfix.1",
44
"description": "Client side ethereum wallet",
55
"scripts": {
66
"build": "npm run update && vue-cli-service build",
@@ -48,6 +48,7 @@
4848
"@formatjs/intl-numberformat": "8.0.4",
4949
"@ledgerhq/hw-transport-web-ble": "6.27.1",
5050
"@lokalise/node-api": "7.3.1",
51+
"@mathieustan/vue-intercom": "0.0.9",
5152
"@myetherwallet/eth2-keystore": "0.2.3",
5253
"@myetherwallet/mew-components": "1.3.0",
5354
"@myetherwallet/mewconnect-web-client": "2.2.0-beta.16",

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
hreflang="x-default"
103103
href="https://www.myetherwallet.com/"
104104
/>
105-
<script async="true" src="./intercom.js"></script>
105+
106106
</head>
107107

108108
<body>

public/intercom.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/main/liveMain.js

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Vue from 'vue';
1010
import Router from 'vue-router';
1111
import { v4 as uuidv4 } from 'uuid';
1212

13+
import VueIntercom from '@mathieustan/vue-intercom';
1314
import VueSocialSharing from 'vue-social-sharing';
1415

1516
/**Dapps Store */
@@ -47,7 +48,7 @@ Vue.directive('lottie', LottieAnimation);
4748
Vue.filter('lokalise', lokalise);
4849

4950
// eslint-disable-next-line
50-
// Vue.use(VueIntercom, { appId: 'ja20qe25' });
51+
Vue.use(VueIntercom, { appId: 'ja20qe25' });
5152
Vue.use(VueSocialSharing);
5253

5354
//Router
@@ -62,6 +63,11 @@ new Vue({
6263
apolloProvider,
6364
vuetify,
6465
beforeCreate() {
66+
const userId = this.$route.query.intercomid
67+
? this.$route.query.intercomid
68+
: uuidv4();
69+
this.$intercom.boot({ user_id: userId });
70+
6571
if (locStore.get('mew-testing') === undefined) {
6672
locStore.set('mew-testing', false);
6773
}
@@ -74,17 +80,5 @@ new Vue({
7480
dappStoreBeforeCreate(this.$store);
7581
this.$store.dispatch('popups/setTracking');
7682
},
77-
mounted() {
78-
window.Intercom('shutdown');
79-
this.bootIntercom();
80-
},
81-
methods: {
82-
bootIntercom() {
83-
const userId = this.$route.query.intercomid
84-
? this.$route.query.intercomid
85-
: uuidv4();
86-
window.Intercom('boot', { app_id: 'ja20qe25', user_id: userId });
87-
}
88-
},
8983
render: h => h(app)
9084
});

0 commit comments

Comments
 (0)