From 921ea04706b8c883cf63ac548d66ef528e1eaf0c Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 22 Mar 2021 09:26:08 +0100 Subject: [PATCH] disable matomo --- apps/remix-ide/src/app.js | 7 ++++++- apps/remix-ide/src/index.html | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide/src/app.js b/apps/remix-ide/src/app.js index 4bca466b83..4c02468f7e 100644 --- a/apps/remix-ide/src/app.js +++ b/apps/remix-ide/src/app.js @@ -366,7 +366,12 @@ Please make a backup of your contracts and start using http://remix.ethereum.org } // Ask to opt in to Matomo for remix, remix-alpha and remix-beta - if (window.location.hostname.includes('.ethereum.org') && !registry.get('config').api.exists('settings/matomo-analytics')) { + const matomoDomains = { + 'remix-alpha.ethereum.org': 27, + 'remix-beta.ethereum.org': 25 + // 'remix.ethereum.org': 23 + } + if (matomoDomains[window.location.hostname] && !registry.get('config').api.exists('settings/matomo-analytics')) { modalDialog( 'Help us to improve Remix IDE', yo` diff --git a/apps/remix-ide/src/index.html b/apps/remix-ide/src/index.html index d20b3cf4ac..869aebf7fa 100644 --- a/apps/remix-ide/src/index.html +++ b/apps/remix-ide/src/index.html @@ -36,8 +36,8 @@