Fix theme change not triggering variants detection

This commit is contained in:
Romain Vigier
2020-02-01 10:28:11 +01:00
parent 48fd2119a7
commit aa705fb6f9
+1 -1
View File
@@ -77,7 +77,7 @@ class Switcher {
const new_theme = this.theme.current;
if ( new_theme === this.variants.day || new_theme === this.variants.night ) return;
this.variants = this._guess_theme_variants_from();
this.variants = this._guess_theme_variants_from(new_theme);
this._apply_theme_variant();
}