- commit
- 6b2b10970f6c620fe5d99bd13ecff4af1339f8af
- parent
- 57e8eb326beb7ed24daec8bf073d30bb282c57e8
- author
- Dami <dami.etoile@gmail.com>
| M | tinyclient/ | 2 | +- |
@@ -756,7 +756,7 @@
756756 static get observedAttributes() { return ["room", "root"]; }757757 // The timeline opens at its newest message: once now, once after layout758758 // and once more after avatars and fonts have settled the heights.759- connectedCallback() { this.open(); roomScroll(); requestAnimationFrame(roomScroll); window.addEventListener("load", roomScroll, {once: true}); }759+ connectedCallback() { this.open(); roomScroll(); globalThis.requestAnimationFrame?.(roomScroll); globalThis.addEventListener?.("load", roomScroll, {once: true}); }760760 disconnectedCallback() { this.close(); }761761 attributeChangedCallback() { if (this.isConnected) { this.close(); this.open(); } }762762