From aa705fb6f9c9baea36038598fd0f6ce161ac8bb5 Mon Sep 17 00:00:00 2001 From: Romain Vigier Date: Sat, 1 Feb 2020 10:28:11 +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 e6a7417..0955b39 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(); + this.variants = this._guess_theme_variants_from(new_theme); this._apply_theme_variant(); }