var uploads = [] ; // everything the user has uploaded
+// Remove the upload window completely (even if it's hidden)
+function deactivate_uploads() {
+ document.getElementById("ctdl-upload").remove();
+}
+
+
// Turn the specified div into a place where we can upload. (Note: permanently changes the drag-and-drop behavior of that div.)
function activate_uploads(parent_div) {
document.getElementById(parent_div).innerHTML += `
console.log(u.ref);
});
uploads=[];
+
+ deactivate_uploads(); // this makes the window get destroyed too
}