@lvce-editor/main-process 6.44.0 → 6.44.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mainProcessMain.js +4 -0
- package/package.json +1 -1
package/dist/mainProcessMain.js
CHANGED
|
@@ -7288,6 +7288,10 @@ const attachEventListenersToWebContents = (webContentsId, webContents, browserWi
|
|
|
7288
7288
|
const createWindow = (options, url, disposition) => {
|
|
7289
7289
|
const view = createWebContentsViewForWindow(browserWindow, options);
|
|
7290
7290
|
send('ElectronWebContents.handleWindowOpen', webContentsId, view.webContents.id, url, disposition);
|
|
7291
|
+
// Link-created tabs have no supplied contents or pending navigation, unlike scripted popups.
|
|
7292
|
+
if (!options.webContents) {
|
|
7293
|
+
void view.webContents.loadURL(url).catch(console.error);
|
|
7294
|
+
}
|
|
7291
7295
|
return view.webContents;
|
|
7292
7296
|
};
|
|
7293
7297
|
// @ts-ignore Electron event handlers have different argument tuples
|