mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 07:56:23 +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.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()
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user