servername,captca,timestamp,reserve resources
This commit is contained in:
@@ -8,6 +8,11 @@ window.fetchTowns = async function() {
|
||||
window.towns = await res.json();
|
||||
window.renderTowns();
|
||||
window.updateServerStatus(true);
|
||||
|
||||
// Automatically select the first town if none is selected
|
||||
if (!window.selectedTownId && window.towns && window.towns.length > 0) {
|
||||
window.selectTown(window.towns[0].town_id);
|
||||
}
|
||||
|
||||
if (window.selectedTownId) {
|
||||
window.renderBuildQueuePreview();
|
||||
@@ -45,7 +50,9 @@ window.fetchLog = async function() {
|
||||
try {
|
||||
const res = await fetch('/dashboard/commands?player_id=' + window.PLAYER_ID);
|
||||
const cmds = await res.json();
|
||||
window.cmds = cmds; // Save globally so viewer can see reserved resources
|
||||
window.renderLog(cmds);
|
||||
if (window.selectedTownId) window.renderTownDetails();
|
||||
} catch (e) {}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user