Fix resizer crashing jitsi

This commit is contained in:
Dariusz Niemczyk 2021-08-24 16:06:10 +02:00
parent a93d5cde09
commit 7645e0413c
No known key found for this signature in database
GPG key ID: 3E8DC619E3C59A05

View file

@ -78,7 +78,7 @@ export default class Resizer<C extends IConfig = IConfig> {
} }
public attach() { public attach() {
const attachment = this?.config?.handler.parentElement ?? this.container; const attachment = this?.config?.handler?.parentElement ?? this.container;
attachment.addEventListener("mousedown", this.onMouseDown, false); attachment.addEventListener("mousedown", this.onMouseDown, false);
window.addEventListener("resize", this.onResize); window.addEventListener("resize", this.onResize);
} }