diff --git a/src/main/index.js b/src/main/index.js index 54d73f1..cf9e4c0 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -20,6 +20,9 @@ const createWindow = ({search = null, url = 'index.html', ...browserWindowOption const window = new BrowserWindow({ useContentSize: true, show: false, + webPreferences: { + nodeIntegration: true + }, ...browserWindowOptions }); const webContents = window.webContents;