From f6ba91e3f13b6f9db2e1fc03550c85c35a8ee89f Mon Sep 17 00:00:00 2001 From: Romain Vigier Date: Sat, 1 Feb 2020 10:44:04 +0100 Subject: [PATCH] Fix theme change not triggering variants detection --- src/extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.js b/src/extension.js index 0955b39..6f90034 100644 --- a/src/extension.js +++ b/src/extension.js @@ -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(new_theme); + this.variants = Variants.guess_from(new_theme); this._apply_theme_variant(); }