ajax timout back to 1 min

This commit is contained in:
2022-06-04 14:48:14 +08:00
parent 621f9c7932
commit 60f2834cca

View File

@@ -284,7 +284,7 @@ if (array_intersect(array_keys($_GET), array_keys($ini))) {
const id = tr.attributes['data-playlist-id'].value
const xhr = new XMLHttpRequest()
xhr.responseType = 'json'
xhr.timeout = 5000 // ms = 5 sec
xhr.timeout = 60000 // ms = 1 min
let st_el = tr.querySelector('span.status')
xhr.onreadystatechange = () => {
if (xhr.readyState === XMLHttpRequest.DONE) {