mirror of
https://github.com/zadam/trilium.git
synced 2026-02-26 16:43: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()) {
|
if (isElectron()) {
|
||||||
dynamicRequire("@electron/remote").BrowserWindow.getFocusedWindow()?.reload();
|
for (const window of dynamicRequire("@electron/remote").BrowserWindow.getAllWindows()) {
|
||||||
|
window.reload();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user