mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
fix: check for destroyed webcontents in converter (#25431)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
const { app, BrowserWindow } = require('electron');
|
||||
|
||||
app.whenReady().then(() => {
|
||||
const w = new BrowserWindow({ show: false, webPreferences: { webviewTag: true } });
|
||||
w.loadURL('data:text/html,<webview src="data:text/html,hi"></webview>');
|
||||
app.on('web-contents-created', () => {
|
||||
w.close();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user