0
0
mirror of https://github.com/anthonyaxenov/iptv.git synced 2024-11-22 13:34:45 +00:00

ajax timout back to 1 min

This commit is contained in:
Anthony Axenov 2022-06-04 14:48:14 +08:00
parent 621f9c7932
commit 60f2834cca
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC

View File

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