From bd0024a00ac87e38834afc639b2aa8e8383aeacd Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Mon, 18 Dec 2023 10:19:15 +0100 Subject: [PATCH] update code for walkthroughService --- apps/remix-ide/src/app.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide/src/app.js b/apps/remix-ide/src/app.js index 572043cd4f..3195b12bbd 100644 --- a/apps/remix-ide/src/app.js +++ b/apps/remix-ide/src/app.js @@ -131,8 +131,12 @@ class AppComponent { 'remix.ethereum.org': 23, '6fd22d6fe5549ad4c4d8fd3ca0b7816b.mod': 35 // remix desktop } - this.showMatamo = matomoDomains[window.location.hostname] && !Registry.getInstance().get('config').api.exists('settings/matomo-analytics') - this.showEnter = matomoDomains[window.location.hostname] && !localStorage.getItem('hadUsageTypeAsked') + + this.matomoConfAlreadySet = Registry.getInstance().get('config').api.exists('settings/matomo-analytics') + this.matomoCurrentSetting = Registry.getInstance().get('config').api.get('settings/matomo-analytics') + this.showMatamo = matomoDomains[window.location.hostname] && !this.matomoConfAlreadySet + + this.walkthroughService = new WalkthroughService(appManager) this.walkthroughService = new WalkthroughService(appManager, !this.showMatamo || !this.showEnter)