diff --git a/src/js/home.js b/src/js/home.js index ae94373..d87ab0e 100644 --- a/src/js/home.js +++ b/src/js/home.js @@ -270,7 +270,11 @@ page.prepareUpload = () => { page.urlMaxSize = parseInt(urlMaxSize.innerHTML) page.urlMaxSizeBytes = page.urlMaxSize * 1e6 urlMaxSize.innerHTML = page.getPrettyBytes(page.urlMaxSizeBytes) - document.querySelector('#uploadUrls').addEventListener('click', event => { + } + + const uploadUrls = document.querySelector('#uploadUrls') + if (uploadUrls) { + uploadUrls.addEventListener('click', event => { page.addUrlsToQueue() }) }