From fdba92fddb3a6f847157c7932036c504e1a1bfb7 Mon Sep 17 00:00:00 2001 From: xenofem Date: Tue, 3 May 2022 19:39:42 -0400 Subject: [PATCH] debounce upload clicks just in case --- static/js/upload.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/upload.js b/static/js/upload.js index c61c1b9..9331cc5 100644 --- a/static/js/upload.js +++ b/static/js/upload.js @@ -151,6 +151,7 @@ function removeFile(name) { function beginUpload() { if (files.length === 0 || files.length > MAX_FILES) { return; } + if (socket && socket.readyState !== 3) { return; } fileIndex = 0; byteIndex = 0;