mirror of
https://github.com/zadam/trilium.git
synced 2026-02-26 08:33:36 +01:00
fix(desktop): protected session not refreshing while app is in background (closes #7761)
This commit is contained in:
parent
b06d390df5
commit
df4fa42acd
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user