diff --git a/src/component/overlay.vue b/src/component/overlay.vue index 3876f77a..d937493f 100644 --- a/src/component/overlay.vue +++ b/src/component/overlay.vue @@ -127,6 +127,7 @@ this.webrtc.addListener('cursor-position', this.onCursorPosition) this.webrtc.addListener('cursor-image', this.onCursorImage) + this.webrtc.addListener('disconnected', this.canvasClear) this.cursorElement.onload = this.canvasRedraw } @@ -135,6 +136,7 @@ this.webrtc.removeListener('cursor-position', this.onCursorPosition) this.webrtc.removeListener('cursor-image', this.onCursorImage) + this.webrtc.removeListener('disconnected', this.canvasClear) this.cursorElement.onload = null }