aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/recipe.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview/recipe.js')
-rw-r--r--src/webview/recipe.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/webview/recipe.js b/src/webview/recipe.js
index fca00fde2..0eae279c6 100644
--- a/src/webview/recipe.js
+++ b/src/webview/recipe.js
@@ -9,6 +9,8 @@ import {
9 disable as disableDarkMode, 9 disable as disableDarkMode,
10} from 'darkreader'; 10} from 'darkreader';
11 11
12import ignoreList from './darkmode/ignore';
13
12import RecipeWebview from './lib/RecipeWebview'; 14import RecipeWebview from './lib/RecipeWebview';
13 15
14import spellchecker, { switchDict, disable as disableSpellchecker, getSpellcheckerLocaleByFuzzyIdentifier } from './spellchecker'; 16import spellchecker, { switchDict, disable as disableSpellchecker, getSpellcheckerLocaleByFuzzyIdentifier } from './spellchecker';
@@ -123,7 +125,7 @@ class RecipeController {
123 125
124 if (darkModeExists) { 126 if (darkModeExists) {
125 injectDarkModeStyle(this.settings.service.recipe.path); 127 injectDarkModeStyle(this.settings.service.recipe.path);
126 } else { 128 } else if (!ignoreList.includes(window.location.host)) {
127 // Use darkreader instead 129 // Use darkreader instead
128 enableDarkMode(); 130 enableDarkMode();
129 } 131 }