Make sure we remove the event listener for beforeunload (+ some cleanup)
This commit is contained in:
parent
ab9cf5648b
commit
f157c1a8fd
@ -176,6 +176,7 @@ class VideoProvider extends Component {
|
|||||||
|
|
||||||
window.removeEventListener('online', this.openWs);
|
window.removeEventListener('online', this.openWs);
|
||||||
window.removeEventListener('offline', this.onWsClose);
|
window.removeEventListener('offline', this.onWsClose);
|
||||||
|
window.removeEventListener('beforeunload', this.unshareWebcam);
|
||||||
|
|
||||||
this.visibility.removeEventListeners();
|
this.visibility.removeEventListeners();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user