fixed upload urls button not working

would happen when in config uploads.urlMaxSize equals uploads.maxSize
This commit is contained in:
Bobby Wibowo 2020-11-05 23:10:22 +07:00
parent 0cfd3fe059
commit a0777fb1d7
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -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()
})
}