mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-19 10:17:31 +00:00
fix: increase XMLHttpRequest timeout to 5000ms for status updates
This commit is contained in:
parent
317dba5e78
commit
426255f5ee
@ -17,7 +17,7 @@
|
|||||||
function updateStatus() {
|
function updateStatus() {
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open('GET', statusUrl, true);
|
xhr.open('GET', statusUrl, true);
|
||||||
xhr.timeout = 4000;
|
xhr.timeout = 5000;
|
||||||
|
|
||||||
xhr.onreadystatechange = function () {
|
xhr.onreadystatechange = function () {
|
||||||
if (xhr.readyState === 4) {
|
if (xhr.readyState === 4) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user