mirror of
https://github.com/islehorse/HISP.git
synced 2025-06-04 21:00:20 +12:00
Replace hirunner with hilauncher.
This commit is contained in:
parent
1a8c418d36
commit
6bea119831
33 changed files with 317 additions and 3 deletions
10
Horse Isle Launcher/resources/app/src/populateServersList.js
Normal file
10
Horse Isle Launcher/resources/app/src/populateServersList.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
const officialServers = require("./official-servers.json");
|
||||
|
||||
const serversList = document.getElementById("serversList")
|
||||
|
||||
|
||||
for (let i = 0; i < Object.keys(officialServers).length; i++) {
|
||||
const name = Object.keys(officialServers)[i];
|
||||
const icon = officialServers[name].icon
|
||||
serversList.innerHTML+= `<div class="item"><img src="./media/servericons/${icon}"><div class="name">${name}</div></div>`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue