Skip to content

Commit 77a0950

Browse files
committed
Packages update
1 parent ae19eb8 commit 77a0950

File tree

5 files changed

+819
-947
lines changed

5 files changed

+819
-947
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ npm-debug.log
1010
# Nuxt generate
1111
dist
1212

13+
# Build dir
14+
build
15+
1316
# Mac OS
1417
.DS_Store

main.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ const path = require('path')
3030
const app = electron.app
3131
const newWin = () => {
3232
win = new electron.BrowserWindow({
33-
icon: path.join(__dirname, 'static/icons/win-icon.ico')
33+
icon: path.join(__dirname, 'static/icons/win-icon.ico'),
34+
webPreferences: {
35+
nodeIntegration: true,
36+
contextIsolation: false,
37+
enableRemoteModule: true,
38+
}
3439
})
3540
win.maximize()
3641
win.on('closed', () => win = null)

0 commit comments

Comments
 (0)