chore: remove awkward semi-documented preloadURL WebPreference (#33228)

This commit is contained in:
Jeremy Rose
2022-03-16 16:23:41 -07:00
committed by GitHub
parent e904486076
commit 4342b7ff55
11 changed files with 16 additions and 23 deletions

View File

@@ -155,7 +155,6 @@ ipcMain.on('disable-preload-on-next-will-attach-webview', (event, id) => {
event.sender.once('will-attach-webview', (event, webPreferences, params) => {
params.src = `file://${path.join(__dirname, '..', 'fixtures', 'pages', 'webview-stripped-preload.html')}`;
delete webPreferences.preload;
delete webPreferences.preloadURL;
});
});