mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-05 19:40:09 +00:00
fixed upload urls button not working
would happen when in config uploads.urlMaxSize equals uploads.maxSize
This commit is contained in:
parent
0cfd3fe059
commit
a0777fb1d7
@ -270,7 +270,11 @@ page.prepareUpload = () => {
|
|||||||
page.urlMaxSize = parseInt(urlMaxSize.innerHTML)
|
page.urlMaxSize = parseInt(urlMaxSize.innerHTML)
|
||||||
page.urlMaxSizeBytes = page.urlMaxSize * 1e6
|
page.urlMaxSizeBytes = page.urlMaxSize * 1e6
|
||||||
urlMaxSize.innerHTML = page.getPrettyBytes(page.urlMaxSizeBytes)
|
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()
|
page.addUrlsToQueue()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user