Add spellcheck configuration

This commit is contained in:
KaKi87 2022-02-09 15:47:43 +01:00
parent b181b7239a
commit 2a90b11a39
3 changed files with 6 additions and 1 deletions

View File

@ -12,6 +12,7 @@ Opinionated [Electron](https://github.com/electron/electron) 17.x + [Vue](https:
- title & menu bar visibility
- icon
- CORS
- spellcheck
- Developer-friendly
- Automatically opening DevTools
- Default detached DevTools mode

View File

@ -1,4 +1,6 @@
module.exports = {
/** @type {boolean} */
isSpellcheckEnabled: false,
/** @type {boolean} */
isTitleBarEnabled: true,
/** @type {boolean} */

View File

@ -10,6 +10,7 @@ const
VUEJS3_DEVTOOLS
} = app.isPackaged ? {} : require('electron-devtools-installer'),
{
isSpellcheckEnabled,
isTitleBarEnabled,
isMenuBarEnabled,
isCorsEnabled,
@ -23,7 +24,8 @@ const
await installExtension(VUEJS3_DEVTOOLS);
const mainWindow = new BrowserWindow({
webPreferences: {
preload: path.join(__dirname, './src/preload.js')
preload: path.join(__dirname, './src/preload.js'),
spellcheck: isSpellcheckEnabled
},
icon: path.join(__dirname, './src/assets/icon.png'),
frame: isTitleBarEnabled,