debounce upload clicks just in case

main
xenofem 2022-05-03 19:39:42 -04:00
parent 3b974ed6a3
commit fdba92fddb
1 changed files with 1 additions and 0 deletions

View File

@ -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;