From 0afd3c65aad95edc7800180a43d6094fbc507e4a Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 26 Oct 2020 20:11:43 +0100 Subject: [PATCH] fix setting note title on back/forward button click, closes #1334 --- src/public/app/services/tab_manager.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/public/app/services/tab_manager.js b/src/public/app/services/tab_manager.js index fd29172d4..b6fd5475d 100644 --- a/src/public/app/services/tab_manager.js +++ b/src/public/app/services/tab_manager.js @@ -115,13 +115,13 @@ export default class TabManager extends Component { // using pushState instead of directly modifying document.location because it does not trigger hashchange window.history.pushState(null, "", url); + } - document.title = "Trilium Notes"; + document.title = "Trilium Notes"; - if (activeTabContext.note) { - // it helps navigating in history if note title is included in the title - document.title += " - " + activeTabContext.note.title; - } + if (activeTabContext.note) { + // it helps navigating in history if note title is included in the title + document.title += " - " + activeTabContext.note.title; } this.triggerEvent('activeNoteChanged'); // trigger this even in on popstate event