fix matomo - switchTo

pull/996/head
yann300 4 years ago committed by GitHub
parent bac954176c
commit 848af2dcdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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)

Loading…
Cancel
Save