fix different world different admin
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
window.fetchTowns = async function() {
|
||||
try {
|
||||
const res = await fetch('/dashboard/towns?player_id=' + window.PLAYER_ID);
|
||||
const res = await fetch(`/dashboard/towns?player_id=${window.PLAYER_ID}&world_id=${window.WORLD_ID}`);
|
||||
window.towns = await res.json();
|
||||
window.renderTowns();
|
||||
window.updateServerStatus(true);
|
||||
@@ -52,7 +52,7 @@ window.fetchClientStatus = async function() {
|
||||
|
||||
window.fetchLog = async function() {
|
||||
try {
|
||||
const res = await fetch('/dashboard/commands?player_id=' + window.PLAYER_ID);
|
||||
const res = await fetch(`/dashboard/commands?player_id=${window.PLAYER_ID}&world_id=${window.WORLD_ID}`);
|
||||
const cmds = await res.json();
|
||||
window.cmds = cmds; // Save globally so viewer can see reserved resources
|
||||
if (window._logPanelMode === 'log') {
|
||||
|
||||
Reference in New Issue
Block a user