Skip to content

Commit 4a8c3a6

Browse files
committed
Added nativeWindowOpen:true to webPreferences to get rid of deprecation message
1 parent f9a3078 commit 4a8c3a6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ app.once('ready', () => {
66

77
const win = new BrowserWindow({
88
width: 600,
9-
height: 400
9+
height: 400,
10+
webPreferences: {
11+
nativeWindowOpen: true //get rid of nativeWindowOpen deprecation message: https://github.com/electron/electron/issues/28511
12+
}
1013
});
1114

1215
const rendererHtmlPath = path.join(`${__dirname}/renderer.html`);

0 commit comments

Comments
 (0)