Always apply theme variant on theme change

This commit is contained in:
Romain Vigier
2020-02-23 15:34:13 +01:00
parent 7958b54700
commit ff9d04cdb2
+1 -4
View File
@@ -68,10 +68,7 @@ var Switcher = class {
}
_on_theme_change() {
const new_theme = this.theme.current;
if ( new_theme === this.variants.day || new_theme === this.variants.night ) return;
this.variants = Variants.guess_from(new_theme);
this.variants = Variants.guess_from(this.theme.current);
this._apply_theme_variant();
}