diff options
Diffstat (limited to 'src/webview')
-rw-r--r-- | src/webview/recipe.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/webview/recipe.js b/src/webview/recipe.js index 1e290f8be..2cb2d3a98 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js | |||
@@ -162,9 +162,15 @@ class RecipeController { | |||
162 | } | 162 | } |
163 | 163 | ||
164 | // Remove dark reader if (universal) dark mode was just disabled | 164 | // Remove dark reader if (universal) dark mode was just disabled |
165 | if (this.universalDarkModeInjected && (!this.settings.service.isDarkModeEnabled || !this.settings.app.universalDarkMode)) { | 165 | if (this.universalDarkModeInjected) { |
166 | disableDarkMode(); | 166 | if ( |
167 | this.universalDarkModeInjected = false; | 167 | !this.settings.app.darkMode |
168 | || !this.settings.service.isDarkModeEnabled | ||
169 | || !this.settings.app.universalDarkMode | ||
170 | ) { | ||
171 | disableDarkMode(); | ||
172 | this.universalDarkModeInjected = false; | ||
173 | } | ||
168 | } | 174 | } |
169 | } | 175 | } |
170 | 176 | ||