Skip to content

Commit 8c881bf

Browse files
committed
Removed nativeWindowOpen:true from webPreferences
The entry nativeWindowOpen:true in webPreferences was necessary to avoid a deprecation message in Electron 14 and is obsolete in Electron 15 because true is now the default
1 parent 01e4905 commit 8c881bf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main.ts

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

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

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

0 commit comments

Comments
 (0)