return ui.setState(createTimestamp, newState, oldState);
},
- setTagView: function (tag: string | null = null) {
- if (tag === null) {
- const target = this.currentTag();
- if (!target) return;
- tag = target.textContent!;
- }
-
+ setTagFilter: function (tag: string) {
if (currentTagFilter !== null) {
this.resetTagView();
}
this.setTitle();
},
+ setTagView: function (tag: string | null = null) {
+ if (tag === null) {
+ const target = this.currentTag();
+ if (!target) return;
+ tag = target.textContent!;
+ }
+ this.setTagFilter(tag);
+ },
+
setTitle: function () {
document.title = "Vopamoi: " + currentViewState + (currentTagFilter ? ": " + currentTagFilter : "");
},