mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
remove listener on dispose
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
93e77a3fcd
commit
b8c01272f4
@ -191,6 +191,7 @@ export class Platform {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this._container.addEventListener("error", handleAvatarError, true);
|
this._container.addEventListener("error", handleAvatarError, true);
|
||||||
|
this._disposables.track(() => this._container.removeEventListener("error", handleAvatarError, true));
|
||||||
window.__hydrogenViewModel = vm;
|
window.__hydrogenViewModel = vm;
|
||||||
const view = new RootView(vm);
|
const view = new RootView(vm);
|
||||||
this._container.appendChild(view.mount());
|
this._container.appendChild(view.mount());
|
||||||
|
Loading…
Reference in New Issue
Block a user