2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-22 01:58:54 +00:00

Fix double-navigation to pages

setupNativefierWindow is already called in createMainWindow !
No need to call it again here in browser-window-created!
Double-navs weren't visible with internal links but they were with external links
This commit is contained in:
Ronan Jouchet 2022-09-17 22:02:10 -04:00
parent be2180b53f
commit eecc33c1aa

View File

@ -444,7 +444,6 @@ app.on('browser-window-blur', (event: Event, window: BrowserWindow) => {
app.on('browser-window-created', (event: Event, window: BrowserWindow) => {
log.debug('app.browser-window-created', { event, window });
setupNativefierWindow(outputOptionsToWindowOptions(appArgs), window);
});
app.on('browser-window-focus', (event: Event, window: BrowserWindow) => {