fix: drop nativeWindowOpen deprecation warning (#32370)
This commit is contained in:
parent
5af6b898d9
commit
a015332342
1 changed files with 1 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
||||||
import { app, ipcMain, session, deprecate, webFrameMain } from 'electron/main';
|
import { app, ipcMain, session, webFrameMain } from 'electron/main';
|
||||||
import type { BrowserWindowConstructorOptions, LoadURLOptions } from 'electron/main';
|
import type { BrowserWindowConstructorOptions, LoadURLOptions } from 'electron/main';
|
||||||
|
|
||||||
import * as url from 'url';
|
import * as url from 'url';
|
||||||
|
@ -733,11 +733,6 @@ WebContents.prototype._init = function () {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
const prefs = this.getLastWebPreferences() || {};
|
|
||||||
if (prefs.nativeWindowOpen === false) {
|
|
||||||
deprecate.log('Deprecation Warning: Disabling nativeWindowOpen is deprecated. The nativeWindowOpen option will be removed in Electron 18.');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.on('login', (event, ...args) => {
|
this.on('login', (event, ...args) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue