diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-10-21 20:05:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-21 20:05:36 +0200 |
commit | 691e0cf7d169974260d9c588579c7bee5fe11083 (patch) | |
tree | 0b2a377d5ac28d5af89b6ab640fd0b042cb600d9 /src/webview | |
parent | provide a float instead of mixed string and int (diff) | |
parent | Fix disable spell checker method for Electron 6 (diff) | |
download | ferdium-app-691e0cf7d169974260d9c588579c7bee5fe11083.tar.gz ferdium-app-691e0cf7d169974260d9c588579c7bee5fe11083.tar.zst ferdium-app-691e0cf7d169974260d9c588579c7bee5fe11083.zip |
fix(Spell checker): Fix disable spell checker (@vantezzen)
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 | } |