SDA-4095 Setting the right context origin on fresh install (#1765)

This commit is contained in:
Salah Benmoussati 2023-03-14 11:14:09 +01:00 committed by GitHub
parent 7a0483a819
commit 2ba6160824
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -420,6 +420,7 @@ ipcMain.on(
);
const mainWebContents = windowHandler.getMainWebContents();
if (mainWebContents && !mainWebContents.isDestroyed()) {
windowHandler.setMainWindowOrigin(formattedPodUrl);
mainWebContents.loadURL(formattedPodUrl);
}
}