mirror of
https://github.com/anthonyaxenov/iptv.git
synced 2024-11-22 05:24:45 +00:00
ajax timout back to 1 min
This commit is contained in:
parent
621f9c7932
commit
60f2834cca
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user