From 17a69b146522419775df215fe3d32edf2f5e97a7 Mon Sep 17 00:00:00 2001 From: Kendell R Date: Sun, 30 Aug 2020 09:26:09 -0700 Subject: [PATCH] Fix bug --- js/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/main.js b/js/main.js index bd3b5f1..36db5ba 100644 --- a/js/main.js +++ b/js/main.js @@ -389,6 +389,8 @@ class BrowserMod { } send_cam(data) { + this._canvas.width = this._video.videoWidth; + this._canvas.height = this._video.videoHeight; const context = this._canvas.getContext('2d'); context.drawImage(this._video, 0, 0, this._video.videoWidth, this._video.videoHeight); this.conn.sendMessage({