aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2020-01-31 11:58:24 +0100
committerLibravatar vantezzen <hello@vantezzen.io>2020-01-31 11:58:24 +0100
commitc562fa60dd488261b32fdca8fbdd34ca446c8111 (patch)
tree30c659b86f8a2a1b371ad8850e77276f0d5b96ad /src
parentMerge pull request #332 from getferdi/all-contributors/add-jereksel (diff)
downloadferdium-app-c562fa60dd488261b32fdca8fbdd34ca446c8111.tar.gz
ferdium-app-c562fa60dd488261b32fdca8fbdd34ca446c8111.tar.zst
ferdium-app-c562fa60dd488261b32fdca8fbdd34ca446c8111.zip
#285 Fix DarkReader for FastMail
Diffstat (limited to 'src')
-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,