mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-12 00:07:27 +00:00
Fix index.txt usage
This commit is contained in:
1 parent
8965f25d2d
commit
8307224fc8
1 file changed
+2
-2
+2
-2
@@ -84,10 +84,10 @@
|
||||
if (!res.ok)
|
||||
reload_versions_fallback()
|
||||
res.text().then(
|
||||
(text) => set_versions(text.split('\n').map(String.prototype.trim).filter((e) => e.length !== 0)),
|
||||
(text) => set_versions(text.trim().split('\n').map((e) => e.trim()).filter((e) => e.length !== 0)),
|
||||
reload_versions_fallback
|
||||
)
|
||||
})
|
||||
}, reload_versions_fallback)
|
||||
|
||||
}
|
||||
function reload_versions_fallback() {
|
||||
|
||||
Reference in new issue
Block a user