mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
fixes in enabling / disabling widgets in runtime
This commit is contained in:
@@ -112,20 +112,6 @@ class TabContext extends Component {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default TabContext;
|
||||
Reference in New Issue
Block a user