mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
5290aab781
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user