From 91dd79057585cf42dc8c640e350ea0c26b458554 Mon Sep 17 00:00:00 2001 From: Hasan Malik Date: Wed, 21 Jan 2026 15:35:27 -0500 Subject: [PATCH 01/14] just some comments on main.js --- app.py | 2 +- static/js/main.js | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/app.py b/app.py index 2de18f3..0f3828e 100644 --- a/app.py +++ b/app.py @@ -384,4 +384,4 @@ def handle_screen_frame(data): emit("screen_frame", data, room='viewer') if __name__ == '__main__': - socketio.run(app, host='0.0.0.0', port=5000, debug=True) \ No newline at end of file + socketio.run(app, host='0.0.0.0', port=5000, debug=False) \ No newline at end of file diff --git a/static/js/main.js b/static/js/main.js index b52d946..2b635ff 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -1822,15 +1822,15 @@ async function startScreenShare() { // We don't do the above check for Safari, because 'browser' screensharing // (i.e. tab screensharing) is not possible on Safari. - screenStream = stream; - isScreenSharing = true; + screenStream = stream; // assign the global "state" variable + isScreenSharing = true; // assign the global "state" variable // Update button appearance screenShareBtn.el.innerHTML = ''; // Create a hidden video element to capture the stream const video = document.createElement('video'); - video.style.display = 'none'; + video.style.display = 'none'; // -> not displayed. invisible. video.srcObject = stream; video.play(); @@ -1840,6 +1840,9 @@ async function startScreenShare() { const cropCanvas = document.createElement('canvas'); const cropCtx = cropCanvas.getContext('2d'); + // the