Enabled spellchecking for only mac

This commit is contained in:
David Benson [draw.io] 2020-11-19 11:30:57 +00:00
parent a872b35113
commit 6245c05c23

View file

@ -1,4 +1,5 @@
const fs = require('fs')
const os = require('os');
const path = require('path')
const url = require('url')
const electron = require('electron')
@ -74,7 +75,8 @@ function createWindow (opt = {})
// preload: path.resolve('./preload.js'),
nodeIntegration: true,
enableRemoteModule: true,
nodeIntegrationInWorker: true
nodeIntegrationInWorker: true,
spellcheck: (os.platform() == "darwin" ? true : false)
}
}, opt)