diff options
author | vantezzen <hello@vantezzen.io> | 2020-01-31 11:58:24 +0100 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2020-01-31 11:58:24 +0100 |
commit | c562fa60dd488261b32fdca8fbdd34ca446c8111 (patch) | |
tree | 30c659b86f8a2a1b371ad8850e77276f0d5b96ad /src/webview | |
parent | Merge pull request #332 from getferdi/all-contributors/add-jereksel (diff) | |
download | ferdium-app-c562fa60dd488261b32fdca8fbdd34ca446c8111.tar.gz ferdium-app-c562fa60dd488261b32fdca8fbdd34ca446c8111.tar.zst ferdium-app-c562fa60dd488261b32fdca8fbdd34ca446c8111.zip |
#285 Fix DarkReader for FastMail
Diffstat (limited to 'src/webview')
-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, |