diff --git a/frontend/ts/tabbar-element.ts b/frontend/ts/tabbar-element.ts
index 2597029..3b86342 100644
--- a/frontend/ts/tabbar-element.ts
+++ b/frontend/ts/tabbar-element.ts
@@ -75,7 +75,7 @@ export class TabBarElement extends HTMLElement {
return ()=>{
let x = util.$("mainarea_injectparent");
if (x) {
- x.innerHTML = ``;
+ x.innerHTML = ``;
self.setAttribute("data-currentadapter", adapter);
}
}
diff --git a/frontend/ts/thread-summary-element.ts b/frontend/ts/thread-summary-element.ts
index fe131bf..7579198 100644
--- a/frontend/ts/thread-summary-element.ts
+++ b/frontend/ts/thread-summary-element.ts
@@ -15,17 +15,19 @@ export class ThreadSummaryElement extends HTMLElement {
constructor() {
super();
- }
-
- connectedCallback() {
- this.innerHTML = "
"
+ this.innerHTML = ""
// adapter shouldn't change, just set it here
this._adapter = this.getAttribute("data-adapter") ?? "";
this.addEventListener("click", this.viewThread(this), false);
}
+ connectedCallback() {
+
+ }
+
attributeChangedCallback(attr: string, prev: string, next: string) {
+
const datastore = AdapterState._instance.data.get(this._adapter);
if (!datastore) {
return;
@@ -44,6 +46,7 @@ export class ThreadSummaryElement extends HTMLElement {
if (threadText) {
threadText.innerHTML = this._msg.content;
}
+ this.setAttribute("data-author", this._msg.author);
}
}
break;