mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
fix setting the title bar when switching note
This commit is contained in:
@@ -101,6 +101,8 @@ class TabContext {
|
||||
|
||||
this.setCurrentNotePathToHash();
|
||||
|
||||
this.setTitleBar();
|
||||
|
||||
setTimeout(async () => {
|
||||
// we include the note into recent list only if the user stayed on the note at least 5 seconds
|
||||
if (notePath && notePath === this.notePath) {
|
||||
@@ -123,6 +125,13 @@ class TabContext {
|
||||
show() {
|
||||
this.$tabContent.show();
|
||||
this.setCurrentNotePathToHash();
|
||||
this.setTitleBar();
|
||||
}
|
||||
|
||||
setTitleBar() {
|
||||
if (!this.$tabContent.is(":visible")) {
|
||||
return;
|
||||
}
|
||||
|
||||
document.title = "Trilium Notes";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user