Upgrade to Electron 11

This commit is contained in:
Evan Hahn
2021-01-22 12:17:15 -06:00
committed by Scott Nonnenberg
parent 62ce308fe1
commit c8b551edab
10 changed files with 435 additions and 274 deletions

View File

@@ -295,6 +295,7 @@ async function createWindow() {
nodeIntegration: false,
nodeIntegrationInWorker: false,
contextIsolation: false,
enableRemoteModule: true,
preload: path.join(__dirname, 'preload.js'),
nativeWindowOpen: true,
spellcheck: await getSpellCheckSetting(),
@@ -658,6 +659,7 @@ function showSettingsWindow() {
nodeIntegration: false,
nodeIntegrationInWorker: false,
contextIsolation: false,
enableRemoteModule: true,
preload: path.join(__dirname, 'settings_preload.js'),
nativeWindowOpen: true,
},
@@ -726,6 +728,7 @@ async function showStickerCreator() {
nodeIntegration: false,
nodeIntegrationInWorker: false,
contextIsolation: false,
enableRemoteModule: true,
preload: path.join(__dirname, 'sticker-creator/preload.js'),
nativeWindowOpen: true,
spellcheck: await getSpellCheckSetting(),
@@ -829,6 +832,7 @@ function showPermissionsPopupWindow(forCalling, forCamera) {
nodeIntegration: false,
nodeIntegrationInWorker: false,
contextIsolation: false,
enableRemoteModule: true,
preload: path.join(__dirname, 'permissions_popup_preload.js'),
nativeWindowOpen: true,
},