Update electron to 20.1.0

This commit is contained in:
Fedor Indutny
2022-08-29 09:28:41 -07:00
committed by GitHub
parent b6f9ee94b5
commit e5f6de946f
4 changed files with 40 additions and 69 deletions

View File

@@ -668,6 +668,7 @@ async function createWindow() {
...defaultWebPrefs,
nodeIntegration: false,
nodeIntegrationInWorker: false,
sandbox: false,
contextIsolation: false,
preload: join(
__dirname,
@@ -1112,6 +1113,7 @@ async function showScreenShareWindow(sourceName: string) {
...defaultWebPrefs,
nodeIntegration: false,
nodeIntegrationInWorker: false,
sandbox: false,
contextIsolation: true,
preload: join(__dirname, '../ts/windows/screenShare/preload.js'),
},
@@ -1165,6 +1167,7 @@ async function showAbout() {
...defaultWebPrefs,
nodeIntegration: false,
nodeIntegrationInWorker: false,
sandbox: false,
contextIsolation: true,
preload: join(__dirname, '../ts/windows/about/preload.js'),
nativeWindowOpen: true,
@@ -1212,6 +1215,7 @@ async function showSettingsWindow() {
...defaultWebPrefs,
nodeIntegration: false,
nodeIntegrationInWorker: false,
sandbox: false,
contextIsolation: true,
preload: join(__dirname, '../ts/windows/settings/preload.js'),
nativeWindowOpen: true,
@@ -1286,6 +1290,7 @@ async function showStickerCreator() {
...defaultWebPrefs,
nodeIntegration: false,
nodeIntegrationInWorker: false,
sandbox: false,
contextIsolation: false,
preload: join(__dirname, '../sticker-creator/preload.js'),
nativeWindowOpen: true,
@@ -1347,6 +1352,7 @@ async function showDebugLogWindow() {
...defaultWebPrefs,
nodeIntegration: false,
nodeIntegrationInWorker: false,
sandbox: false,
contextIsolation: true,
preload: join(__dirname, '../ts/windows/debuglog/preload.js'),
nativeWindowOpen: true,
@@ -1410,6 +1416,7 @@ function showPermissionsPopupWindow(forCalling: boolean, forCamera: boolean) {
...defaultWebPrefs,
nodeIntegration: false,
nodeIntegrationInWorker: false,
sandbox: false,
contextIsolation: true,
preload: join(__dirname, '../ts/windows/permissions/preload.js'),
nativeWindowOpen: true,
@@ -1695,6 +1702,7 @@ app.on('ready', async () => {
webPreferences: {
...defaultWebPrefs,
nodeIntegration: false,
sandbox: false,
contextIsolation: true,
preload: join(__dirname, '../ts/windows/loading/preload.js'),
},