better prints

This commit is contained in:
Kyle
2021-02-26 18:08:17 -08:00
parent da0059b49b
commit 30b7730ebd
3 changed files with 20 additions and 25 deletions

View File

@@ -65,7 +65,7 @@ function dropDrop(e) {
otherParams = e.target.closest('.drop-area').children[1].getAttribute('data-otherParams');
uploadFiles(e.dataTransfer.files, destination, otherParams);
}
async function uploadFiles(filesRaw, destination, otherParams) {
async function uploadFiles(filesRaw, destination, otherParams = '') {
var files = ([...filesRaw]);
if (files.length > 9) {
if (!confirm('You are uploading ' + files.length + ' images. Would you like to continue?')) {