Skip to content

Commit 14e48d3

Browse files
committed
add 'nativeWindowOpen: true' to remove warning;
1 parent 85ecd10 commit 14e48d3

File tree

1 file changed

+4
-1
lines changed
  • 1.hello-world/9.read-video-electron

1 file changed

+4
-1
lines changed

1.hello-world/9.read-video-electron/main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ const { app, BrowserWindow } = require('electron');
33
function createWindow() {
44
const win = new BrowserWindow({
55
width: 800,
6-
height: 600
6+
height: 600,
7+
webPreferences: {
8+
nativeWindowOpen: true
9+
}
710
})
811

912
win.loadFile('index.html')

0 commit comments

Comments
 (0)