Merge remote-tracking branch 'origin/master'

This commit is contained in:
zadam 2021-11-20 12:51:13 +01:00
commit 5290aab781

View File

@ -129,12 +129,12 @@ export default class TabManager extends Component {
window.history.pushState(null, "", url); window.history.pushState(null, "", url);
} }
document.title = "Trilium Notes"; const titleFragments = [
if (activeNoteContext.note) {
// it helps navigating in history if note title is included in the title // it helps navigating in history if note title is included in the title
document.title += " - " + activeNoteContext.note.title; activeNoteContext.note?.title,
} "Trilium Notes"
].filter(Boolean);
document.title = titleFragments.join(" - ");
this.triggerEvent('activeNoteChanged'); // trigger this even in on popstate event this.triggerEvent('activeNoteChanged'); // trigger this even in on popstate event
} }