diff options
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/src/main/index.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index cbd56f3843..ec67280e12 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -1446,7 +1446,10 @@ class ApplicationMain { transparent: !this.guiSettings.unpinnedWindow, useContentSize: true, webPreferences: { - nodeIntegration: true, + preload: path.join(__dirname, '../renderer/preload.js'), + nodeIntegration: false, + nodeIntegrationInWorker: false, + nodeIntegrationInSubFrames: false, devTools: process.env.NODE_ENV === 'development', // TODO: Remove use of remote enableRemoteModule: true, |
