mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
wip
This commit is contained in:
@@ -138,7 +138,6 @@ class AppContext {
|
||||
|
||||
tabNoteSwitchedListener({tabId}) {
|
||||
if (tabId === this.activeTabId) {
|
||||
this._setTitleBar();
|
||||
this._setCurrentNotePathToHash();
|
||||
}
|
||||
}
|
||||
@@ -151,23 +150,6 @@ class AppContext {
|
||||
}
|
||||
}
|
||||
|
||||
noteTitleChangedListener() {
|
||||
this._setTitleBar();
|
||||
}
|
||||
|
||||
async _setTitleBar() {
|
||||
document.title = "Trilium Notes";
|
||||
|
||||
const activeTabContext = this.getActiveTabContext();
|
||||
|
||||
if (activeTabContext && activeTabContext.notePath) {
|
||||
const note = await treeCache.getNote(treeService.getNoteIdFromNotePath(activeTabContext.notePath));
|
||||
|
||||
// it helps navigating in history if note title is included in the title
|
||||
document.title += " - " + note.title;
|
||||
}
|
||||
}
|
||||
|
||||
/** @return {TabContext[]} */
|
||||
getTabContexts() {
|
||||
return this.tabContexts;
|
||||
|
||||
Reference in New Issue
Block a user