mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 13:40:47 +00:00
Update electron to 20.1.0
This commit is contained in:
@@ -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'),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user