mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-13 10:11:50 +00:00
Prettier fixes
This commit is contained in:
parent
30beb7df5f
commit
388f7888ee
@ -103,21 +103,17 @@ export class ModLoader {
|
||||
mods = await ipcRenderer.invoke("get-mods");
|
||||
}
|
||||
if (G_IS_DEV && globalConfig.debug.externalModUrl) {
|
||||
let modURLs = Array.isArray(globalConfig.debug.externalModUrl) ?
|
||||
globalConfig.debug.externalModUrl : [globalConfig.debug.externalModUrl];
|
||||
|
||||
for(let i = 0; i < modURLs.length; i++) {
|
||||
const modURLs = Array.isArray(globalConfig.debug.externalModUrl)
|
||||
? globalConfig.debug.externalModUrl
|
||||
: [globalConfig.debug.externalModUrl];
|
||||
|
||||
for (let i = 0; i < modURLs.length; i++) {
|
||||
const response = await fetch(modURLs[i], {
|
||||
method: "GET",
|
||||
});
|
||||
if (response.status !== 200) {
|
||||
throw new Error(
|
||||
"Failed to load " +
|
||||
modURLs[i] +
|
||||
": " +
|
||||
response.status +
|
||||
" " +
|
||||
response.statusText
|
||||
"Failed to load " + modURLs[i] + ": " + response.status + " " + response.statusText
|
||||
);
|
||||
}
|
||||
mods.push(await response.text());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user