mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix hac
This commit is contained in:
1 parent
a834d48a38
commit
0e637d772e
1 file changed
+1
-7
@@ -366,12 +366,6 @@ export class ServerAPI extends AbstractAPI {
|
|||||||
metroResources.remote_storage!.remote_urls,
|
metroResources.remote_storage!.remote_urls,
|
||||||
);
|
);
|
||||||
|
|
||||||
const iconPathHack = stuffUI.icon.replace("\n", "");
|
return `${remoteStorage.url}${remoteStorage.relative_path}${stuffUI.icon!.value}`;
|
||||||
|
|
||||||
if (!stuffUI.icon.includes("\n")) {
|
|
||||||
throw new Error("Icon path doesn't include newline, can't apply hack");
|
|
||||||
}
|
|
||||||
|
|
||||||
return `${remoteStorage.url}${remoteStorage.relative_path}${iconPathHack}`;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user