aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-09 14:38:45 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-09 11:38:36 +0000
commit8fd28deaf0ff06907ed48e4c283df8298cca62af (patch)
tree30100c866d732822627a3994b6058f52242a4b7a /src/index.js
parent5.6.1-nightly.19 [skip ci] (diff)
downloadferdium-app-8fd28deaf0ff06907ed48e4c283df8298cca62af.tar.gz
ferdium-app-8fd28deaf0ff06907ed48e4c283df8298cca62af.tar.zst
ferdium-app-8fd28deaf0ff06907ed48e4c283df8298cca62af.zip
fix(spell-check): use electron's API to enable/disable spell-check when the app starts up
fixes #1743
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/index.js b/src/index.js
index 3264fdc63..9146a23da 100644
--- a/src/index.js
+++ b/src/index.js
@@ -190,6 +190,7 @@ const createWindow = () => {
190 show: false, 190 show: false,
191 titleBarStyle: isMac ? 'hidden' : '', 191 titleBarStyle: isMac ? 'hidden' : '',
192 frame: isLinux, 192 frame: isLinux,
193 spellcheck: settings.get('enableSpellchecking'),
193 backgroundColor, 194 backgroundColor,
194 webPreferences: { 195 webPreferences: {
195 nodeIntegration: true, 196 nodeIntegration: true,
@@ -391,10 +392,10 @@ app.on('ready', () => {
391 enforceMacOSAppLocation(); 392 enforceMacOSAppLocation();
392 393
393 // Register App URL 394 // Register App URL
394 app.setAsDefaultProtocolClient('ferdi');
395
396 if (isDevMode) { 395 if (isDevMode) {
397 app.setAsDefaultProtocolClient('ferdi-dev'); 396 app.setAsDefaultProtocolClient('ferdi-dev');
397 } else {
398 app.setAsDefaultProtocolClient('ferdi');
398 } 399 }
399 400
400 if (isWindows) { 401 if (isWindows) {