From 848af2dcdc71ba943f5f5cfd068608f00b172380 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 22 Mar 2021 10:15:02 +0100 Subject: [PATCH] fix matomo - switchTo --- apps/remix-ide/src/app/tabs/theme-module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/tabs/theme-module.js b/apps/remix-ide/src/app/tabs/theme-module.js index 4c45f05d37..cbfef2d927 100644 --- a/apps/remix-ide/src/app/tabs/theme-module.js +++ b/apps/remix-ide/src/app/tabs/theme-module.js @@ -78,8 +78,8 @@ export class ThemeModule extends Plugin { if (themeName && !Object.keys(this.themes).includes(themeName)) { throw new Error(`Theme ${themeName} doesn't exist`) } - _paq.push(['trackEvent', 'themeModule', 'switchTo', themeName]) const next = themeName || this.active // Name + _paq.push(['trackEvent', 'themeModule', 'switchTo', next]) const nextTheme = this.themes[next] // Theme if (!this.forced) this._deps.config.set('settings/theme', next) document.getElementById('theme-link').setAttribute('href', nextTheme.url)