mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-17 18:32:20 +02:00
Merge pull request #6488 from SimonBrandner/fix/call-crash/18270
This commit is contained in:
commit
e7151ebf2d
@ -80,7 +80,10 @@ export default class VideoFeed extends React.Component<IProps, IState> {
|
||||
}
|
||||
|
||||
private setElementRef = (element: HTMLVideoElement): void => {
|
||||
if (!element) element.removeEventListener('resize', this.onResize);
|
||||
if (!element) {
|
||||
this.element?.removeEventListener('resize', this.onResize);
|
||||
return;
|
||||
}
|
||||
|
||||
this.element = element;
|
||||
element.addEventListener('resize', this.onResize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user