more predictable styles order, custom styles before builtins

This commit is contained in:
Henry Jameson 2024-11-25 19:42:50 +02:00
commit 7b56b3f411
2 changed files with 11 additions and 4 deletions

View file

@ -275,7 +275,7 @@ export const getResourcesIndex = async (url, parser = JSON.parse) => {
console.warn(`Custom resources at ${customUrl} unavailable`)
}
const total = [...builtin, ...custom]
const total = [...custom, ...builtin]
if (total.length === 0) {
return Promise.reject(new Error(`Resource at ${url} and ${customUrl} completely unavailable. Panicking`))
}