mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-22 10:08:55 +00:00
parent
b362fbec3b
commit
57636b9022
@ -154,10 +154,6 @@ export async function createMainWindow(
|
||||
await clearCache(mainWindow);
|
||||
}
|
||||
|
||||
if (options.targetUrl) {
|
||||
await mainWindow.loadURL(options.targetUrl);
|
||||
}
|
||||
|
||||
setupCloseEvent(options, mainWindow);
|
||||
|
||||
return mainWindow;
|
||||
|
@ -415,6 +415,10 @@ async function onReady(): Promise<void> {
|
||||
})
|
||||
.catch((err) => log.error('dialog.showMessageBox ERROR', err));
|
||||
}
|
||||
|
||||
if (appArgs.targetUrl) {
|
||||
await mainWindow.loadURL(appArgs.targetUrl);
|
||||
}
|
||||
}
|
||||
|
||||
app.on(
|
||||
|
Loading…
Reference in New Issue
Block a user