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
|
||||
for (let i = 0; i < css.length; ++i) {
|
||||
promiseFunctions.push(progress =>
|
||||
timeoutPromise(
|
||||
this.internalPreloadCss(cachebust(css[i]), progress),
|
||||
LOADER_TIMEOUT_PER_RESOURCE
|
||||
).catch(err => {
|
||||
logger.error("Failed to load css:", css[i], err);
|
||||
throw new Error("HUD Stylesheet " + css[i] + " failed to load: " + err);
|
||||
})
|
||||
timeoutPromise(this.internalPreloadCss(css[i], progress), LOADER_TIMEOUT_PER_RESOURCE).catch(
|
||||
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