Fixed loader task sorting. Opus now working again
parent
08603bf831
commit
28695f3004
|
@ -76,9 +76,10 @@ namespace loader {
|
|||
});
|
||||
return;
|
||||
}
|
||||
|
||||
const task_array = tasks[stage] || [];
|
||||
task_array.push(task);
|
||||
tasks[stage] = task_array.sort((a, b) => a.priority > b.priority ? 1 : 0);
|
||||
tasks[stage] = task_array.sort((a, b) => a.priority - b.priority);
|
||||
}
|
||||
|
||||
export async function execute() {
|
||||
|
|
|
@ -448,6 +448,6 @@ loader.register_task(loader.Stage.JAVASCRIPT_INITIALIZING, {
|
|||
displayCriticalError("Failed to boot app function:<br>" + ex);
|
||||
}
|
||||
},
|
||||
priority: 100
|
||||
priority: 1000
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue