From ff9d04cdb2352dbe9e694d5e5ddc6991b72cda9d Mon Sep 17 00:00:00 2001 From: Romain Vigier Date: Sun, 23 Feb 2020 15:34:13 +0100 Subject: [PATCH] Always apply theme variant on theme change --- src/modules/Switcher.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/modules/Switcher.js b/src/modules/Switcher.js index 7a7c258..6482b6b 100644 --- a/src/modules/Switcher.js +++ b/src/modules/Switcher.js @@ -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(); }