diff options
Diffstat (limited to 'src/webview/recipe.js')
-rw-r--r-- | src/webview/recipe.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/webview/recipe.js b/src/webview/recipe.js index 2cb2d3a98..770532be1 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js | |||
@@ -4,6 +4,12 @@ import { autorun, computed, observable } from 'mobx'; | |||
4 | import fs from 'fs-extra'; | 4 | import fs from 'fs-extra'; |
5 | import { loadModule } from 'cld3-asm'; | 5 | import { loadModule } from 'cld3-asm'; |
6 | import { debounce } from 'lodash'; | 6 | import { debounce } from 'lodash'; |
7 | |||
8 | // For some services darkreader tries to use the chrome extension message API | ||
9 | // This will cause the service to fail loading | ||
10 | // As the message API is not actually needed, we'll add this shim sendMessage | ||
11 | // function in order for darkreader to continue working | ||
12 | window.chrome.runtime.sendMessage = () => {}; | ||
7 | import { | 13 | import { |
8 | enable as enableDarkMode, | 14 | enable as enableDarkMode, |
9 | disable as disableDarkMode, | 15 | disable as disableDarkMode, |