more predictable styles order, custom styles before builtins
This commit is contained in:
parent
00438e852e
commit
7b56b3f411
2 changed files with 11 additions and 4 deletions
|
|
@ -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`))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue