diff options
author | 2020-04-19 11:52:57 +0000 | |
---|---|---|
committer | 2020-04-19 11:52:57 +0000 | |
commit | 128bbb27a04533b69af96091dd2492f9346e0de6 (patch) | |
tree | 2a2310ad87607c03adff037fcba8342ffee552ee /src/webview/recipe.js | |
parent | #577 Keep services in hibernation at startup (#584) (diff) | |
download | ferdium-app-128bbb27a04533b69af96091dd2492f9346e0de6.tar.gz ferdium-app-128bbb27a04533b69af96091dd2492f9346e0de6.tar.zst ferdium-app-128bbb27a04533b69af96091dd2492f9346e0de6.zip |
Address Dark Reader settings translation issue (#593)
* Remove unmaintained en.json
* Fix missing translations for Dark Reader settings, harmonize case
* Harmonize Dark Reader case
Diffstat (limited to 'src/webview/recipe.js')
-rw-r--r-- | src/webview/recipe.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/webview/recipe.js b/src/webview/recipe.js index 8125ec064..b0aefd9c1 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js | |||
@@ -231,9 +231,9 @@ class RecipeController { | |||
231 | disableDarkMode(); | 231 | disableDarkMode(); |
232 | this.universalDarkModeInjected = false; | 232 | this.universalDarkModeInjected = false; |
233 | } else if (this.settings.app.universalDarkMode && !ignoreList.includes(window.location.host)) { | 233 | } else if (this.settings.app.universalDarkMode && !ignoreList.includes(window.location.host)) { |
234 | console.log('Injecting DarkReader'); | 234 | console.log('Injecting Dark Reader'); |
235 | 235 | ||
236 | // Use darkreader instead | 236 | // Use Dark Reader instead |
237 | const { brightness, contrast, sepia } = this.settings.service.darkReaderSettings; | 237 | const { brightness, contrast, sepia } = this.settings.service.darkReaderSettings; |
238 | enableDarkMode({ brightness, contrast, sepia }, { | 238 | enableDarkMode({ brightness, contrast, sepia }, { |
239 | css: customDarkModeCss[window.location.host] || '', | 239 | css: customDarkModeCss[window.location.host] || '', |
@@ -257,7 +257,7 @@ class RecipeController { | |||
257 | console.log('Removing injected darkmode.css'); | 257 | console.log('Removing injected darkmode.css'); |
258 | removeDarkModeStyle(); | 258 | removeDarkModeStyle(); |
259 | } else { | 259 | } else { |
260 | console.log('Removing DarkReader'); | 260 | console.log('Removing Dark Reader'); |
261 | 261 | ||
262 | disableDarkMode(); | 262 | disableDarkMode(); |
263 | this.universalDarkModeInjected = false; | 263 | this.universalDarkModeInjected = false; |