aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/webview/recipe.js6
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';
4import fs from 'fs-extra'; 4import fs from 'fs-extra';
5import { loadModule } from 'cld3-asm'; 5import { loadModule } from 'cld3-asm';
6import { debounce } from 'lodash'; 6import { 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
12window.chrome.runtime.sendMessage = () => {};
7import { 13import {
8 enable as enableDarkMode, 14 enable as enableDarkMode,
9 disable as disableDarkMode, 15 disable as disableDarkMode,