mirror of
https://github.com/zadam/trilium.git
synced 2025-12-24 00:04:23 +01:00
fix(electron): allow extra window to reload (#7567)
This commit is contained in:
parent
3f0b0f9b62
commit
6d4b87888a
@ -11,7 +11,11 @@ export function reloadFrontendApp(reason?: string) {
|
||||
logInfo(`Frontend app reload: ${reason}`);
|
||||
}
|
||||
|
||||
window.location.reload();
|
||||
if (isElectron()) {
|
||||
dynamicRequire("@electron/remote").BrowserWindow.getFocusedWindow()?.reload();
|
||||
} else {
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
|
||||
export function restartDesktopApp() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user