chore(tab_navigation): reintroduce history cleaning

This commit is contained in:
Elian Doran 2025-12-09 14:24:24 +02:00
parent 9e099444b6
commit 5a668ede01
No known key found for this signature in database

View File

@ -64,6 +64,9 @@ function initOnElectron() {
if (options.get("nativeTitleBarVisible") !== "true") { if (options.get("nativeTitleBarVisible") !== "true") {
initTitleBarButtons(style, currentWindow); initTitleBarButtons(style, currentWindow);
} }
// Clear navigation history on frontend refresh.
currentWindow.webContents.navigationHistory.clear();
} }
function initTitleBarButtons(style: CSSStyleDeclaration, currentWindow: Electron.BrowserWindow) { function initTitleBarButtons(style: CSSStyleDeclaration, currentWindow: Electron.BrowserWindow) {