Skip to content

Build your personal knowledge base with Trilium Notes

chore(tab_navigation): reintroduce history cleaning

Elian Doran5a668ede01c9
diff --git a/apps/client/src/desktop.ts b/apps/client/src/desktop.ts
index e77ba845b7..b88eb8d4a9 100644
--- a/apps/client/src/desktop.ts
+++ b/apps/client/src/desktop.ts
@@ -64,6 +64,9 @@ function initOnElectron() {
if (options.get("nativeTitleBarVisible") !== "true") {
initTitleBarButtons(style, currentWindow);
}
+
+ // Clear navigation history on frontend refresh.
+ currentWindow.webContents.navigationHistory.clear();
}
function initTitleBarButtons(style: CSSStyleDeclaration, currentWindow: Electron.BrowserWindow) {