fix themes v3 not loading
This commit is contained in:
parent
9c7ff2ab61
commit
a1822a5910
3 changed files with 8 additions and 3 deletions
|
|
@ -307,7 +307,9 @@ export const applyStyleConfig = (input) => {
|
|||
adoptStyleSheets()
|
||||
}
|
||||
|
||||
export const getResourcesIndex = async (url, parser = (x) => x) => {
|
||||
const noop = (x) => x
|
||||
|
||||
export const getResourcesIndex = async (url, parser = noop) => {
|
||||
const cache = 'no-store'
|
||||
const customUrl = url.replace(/\.(\w+)$/, '.custom.$1')
|
||||
let builtin
|
||||
|
|
@ -324,6 +326,7 @@ export const getResourcesIndex = async (url, parser = (x) => x) => {
|
|||
promisedRequest({
|
||||
url: v,
|
||||
cache,
|
||||
forceContentType: parser === noop ? null : 'text/plain',
|
||||
})
|
||||
.then(({ data: text }) => parser(text))
|
||||
.catch((e) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue