diff options
author | Bennett <hello@vantezzen.io> | 2019-10-17 21:20:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-17 21:20:01 +0200 |
commit | 66e43c5d21f90893b047a7cabbc31bb0e83035d5 (patch) | |
tree | ba44707252a8c1334df2f455b644cb1e79148a27 /src/webview | |
parent | test to reload app after resume (diff) | |
download | ferdium-app-66e43c5d21f90893b047a7cabbc31bb0e83035d5.tar.gz ferdium-app-66e43c5d21f90893b047a7cabbc31bb0e83035d5.tar.zst ferdium-app-66e43c5d21f90893b047a7cabbc31bb0e83035d5.zip |
Fix disable spell checker method for Electron 6
While Electron <6 still [required a second "autoCorrectWord" argument](https://github.com/electron/electron/blob/v3.1.0/docs/api/web-frame.md#webframesetspellcheckproviderlanguage-autocorrectword-provider), Electron 6 [no longer needs this argument](https://electronjs.org/docs/api/web-frame#webframesetspellcheckproviderlanguage-provider).
Because of this, Franz's service webview when trying to disable the Spellchecker.
Diffstat (limited to 'src/webview')
-rw-r--r-- | src/webview/spellchecker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webview/spellchecker.js b/src/webview/spellchecker.js index 06cbd283a..d8f71f61f 100644 --- a/src/webview/spellchecker.js +++ b/src/webview/spellchecker.js | |||
@@ -96,7 +96,7 @@ export function isEnabled() { | |||
96 | 96 | ||
97 | export function disable() { | 97 | export function disable() { |
98 | if (isEnabled()) { | 98 | if (isEnabled()) { |
99 | webFrame.setSpellCheckProvider(currentDict, true, { spellCheck: () => true }); | 99 | webFrame.setSpellCheckProvider(currentDict, { spellCheck: () => true }); |
100 | _isEnabled = false; | 100 | _isEnabled = false; |
101 | currentDict = null; | 101 | currentDict = null; |
102 | } | 102 | } |