fix: queue issue
This commit is contained in:
@@ -124,15 +124,7 @@ AniWorld.QueueApp = (function() {
|
||||
*/
|
||||
async function loadQueueData() {
|
||||
try {
|
||||
const response = await fetch(API.QUEUE_STATUS, {
|
||||
method: 'GET',
|
||||
headers: AniWorld.Auth.getAuthHeaders()
|
||||
});
|
||||
if (!response || !response.ok) {
|
||||
console.warn('Failed to load queue data:', response?.status);
|
||||
return;
|
||||
}
|
||||
const data = await response.json();
|
||||
const data = await AniWorld.QueueAPI.loadQueueData();
|
||||
if (data) {
|
||||
AniWorld.QueueRenderer.updateQueueDisplay(data);
|
||||
AniWorld.ProgressHandler.processPendingProgressUpdates();
|
||||
|
||||
Reference in New Issue
Block a user