resetTagView: function () {
currentTagView = null;
+ this.setTitle();
const taskList = document.getElementById("tasks")!;
for (const task of Array.from(document.getElementsByClassName("task"))) {
task.classList.remove("hide");
}
currentTagView = tag;
+ this.setTitle();
+ },
+
+ setTitle: function () {
+ document.title = "Vopamoi: " + currentViewState + (currentTagView ? ": " + currentTagView : "");
},
setView: function (state: string) {
sheet.removeRule(2);
sheet.removeRule(2);
currentViewState = state;
+ this.setTitle();
if (this.currentTask()?.getAttribute("data-state") !== state) {
this.firstVisibleTask()?.focus();
}
function browserInit() {
log.replay();
+ browserUI.setTitle();
browserUI.firstVisibleTask()?.focus();
document.body.addEventListener("keydown", handleKey, { capture: false });
}