~starkingdoms/starkingdoms

2253d255f8c18aeb93a64216c1964a7ef0128c0d — core 2 years ago 6c682ed
select server marked as isPrimary
2 files changed, 5 insertions(+), 1 deletions(-)

M starkingdoms-client/index.html
M starkingdoms-client/src/routes/menu/main.ts
M starkingdoms-client/index.html => starkingdoms-client/index.html +1 -1
@@ 14,7 14,7 @@
        <input class="textentry" id="username" required autocomplete="off" />

        <label class="label" for="select">Server</label>
        <select id="select" class="select">
        <select id="select" class="select" autocomplete="off">
          <option>Loading server list, please wait...</option>
        </select>


M starkingdoms-client/src/routes/menu/main.ts => starkingdoms-client/src/routes/menu/main.ts +4 -0
@@ 56,6 56,10 @@ async function init() {
    new_option.innerText = server.name;

    select_box.appendChild(new_option);

    if (server.isPrimary) {
      select_box.value = server_id;
    }
  }
}