loading fix

This commit is contained in:
TheErrorExe 2025-02-02 19:30:10 +01:00
parent c0693ec17e
commit 60f083d6c2

View file

@ -102,6 +102,7 @@
setInterval(checkStatus, 1000);
}
function checkStatus() {
var xhr = new XMLHttpRequest();
xhr.open('GET', '/status/' + videoId, true);
@ -109,7 +110,7 @@
if (xhr.readyState === 4 && xhr.status === 200) {
var response;
try {
response = JSON.parse(xhr.responseText);
response = eval('(' + xhr.responseText + ')');
} catch (e) {
response = { status: 'error' };
}