themeChanged send the full theme object

pull/1/head
Grandschtroumpf 6 years ago
parent d266db68ee
commit 3113219241
  1. 2
      src/app/tabs/theme-module.js

@ -57,6 +57,6 @@ export class ThemeModule extends BaseApi {
document.getElementById('theme-link').setAttribute('href', nextTheme.url) document.getElementById('theme-link').setAttribute('href', nextTheme.url)
document.documentElement.style.setProperty('--theme', nextTheme.quality) document.documentElement.style.setProperty('--theme', nextTheme.quality)
if (themeName) this.active = themeName if (themeName) this.active = themeName
this.events.emit('themeChanged', nextTheme.quality) this.events.emit('themeChanged', nextTheme)
} }
} }

Loading…
Cancel
Save