fix(desktop): protected session not refreshing while app is in background (closes #7761)

This commit is contained in:
Elian Doran
2026-02-23 19:56:03 +02:00
parent b06d390df5
commit df4fa42acd

View File

@@ -14,7 +14,9 @@ export function reloadFrontendApp(reason?: string) {
}
if (isElectron()) {
dynamicRequire("@electron/remote").BrowserWindow.getFocusedWindow()?.reload();
for (const window of dynamicRequire("@electron/remote").BrowserWindow.getAllWindows()) {
window.reload();
}
} else {
window.location.reload();
}