diff options
author | 2019-10-17 21:56:45 +0200 | |
---|---|---|
committer | 2019-10-17 21:56:45 +0200 | |
commit | 129988fc638aebed871b40bbcfaedfc4c83d2208 (patch) | |
tree | 2e648d592f99b6c64b9bade74d1c77603b3fef79 /src/webview | |
parent | Add toggle to disable universal dark mode (diff) | |
download | ferdium-app-129988fc638aebed871b40bbcfaedfc4c83d2208.tar.gz ferdium-app-129988fc638aebed871b40bbcfaedfc4c83d2208.tar.zst ferdium-app-129988fc638aebed871b40bbcfaedfc4c83d2208.zip |
Add toggle to disable dark mode on per-service basis
Diffstat (limited to 'src/webview')
-rw-r--r-- | src/webview/recipe.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview/recipe.js b/src/webview/recipe.js index d18d16082..ddfd0e139 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js | |||
@@ -120,7 +120,7 @@ class RecipeController { | |||
120 | } | 120 | } |
121 | } | 121 | } |
122 | 122 | ||
123 | if (this.settings.service.isDarkModeEnabled || this.settings.app.darkMode) { | 123 | if (this.settings.service.isDarkModeEnabled) { |
124 | debug('Enable dark mode'); | 124 | debug('Enable dark mode'); |
125 | 125 | ||
126 | // Check if recipe has a darkmode.css | 126 | // Check if recipe has a darkmode.css |
@@ -148,7 +148,7 @@ class RecipeController { | |||
148 | } | 148 | } |
149 | 149 | ||
150 | // Remove dark reader if (universal) dark mode was just disabled | 150 | // Remove dark reader if (universal) dark mode was just disabled |
151 | if (this.universalDarkModeInjected && (!this.settings.app.darkMode || !this.settings.app.universalDarkMode)) { | 151 | if (this.universalDarkModeInjected && (!this.settings.service.isDarkModeEnabled || !this.settings.app.universalDarkMode)) { |
152 | disableDarkMode(); | 152 | disableDarkMode(); |
153 | this.universalDarkModeInjected = false; | 153 | this.universalDarkModeInjected = false; |
154 | } | 154 | } |