mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Fix invalid css urls
This commit is contained in:
parent
34ed689875
commit
c74e4b9819
@ -82,13 +82,12 @@ export class BackgroundResourcesLoader {
|
|||||||
// CSS
|
// CSS
|
||||||
for (let i = 0; i < css.length; ++i) {
|
for (let i = 0; i < css.length; ++i) {
|
||||||
promiseFunctions.push(progress =>
|
promiseFunctions.push(progress =>
|
||||||
timeoutPromise(
|
timeoutPromise(this.internalPreloadCss(css[i], progress), LOADER_TIMEOUT_PER_RESOURCE).catch(
|
||||||
this.internalPreloadCss(cachebust(css[i]), progress),
|
err => {
|
||||||
LOADER_TIMEOUT_PER_RESOURCE
|
logger.error("Failed to load css:", css[i], err);
|
||||||
).catch(err => {
|
throw new Error("HUD Stylesheet " + css[i] + " failed to load: " + err);
|
||||||
logger.error("Failed to load css:", css[i], err);
|
}
|
||||||
throw new Error("HUD Stylesheet " + css[i] + " failed to load: " + err);
|
)
|
||||||
})
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user