Skip to content

Commit 6d4b878

Browse files
authored
fix(electron): allow extra window to reload (#7567)
1 parent 3f0b0f9 commit 6d4b878

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/client/src/services/utils.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ export function reloadFrontendApp(reason?: string) {
1111
logInfo(`Frontend app reload: ${reason}`);
1212
}
1313

14-
window.location.reload();
14+
if (isElectron()) {
15+
dynamicRequire("@electron/remote").BrowserWindow.getFocusedWindow()?.reload();
16+
} else {
17+
window.location.reload();
18+
}
1519
}
1620

1721
export function restartDesktopApp() {

0 commit comments

Comments
 (0)