diff --git a/map4.js b/map4.js index 9e98936..640dfc2 100644 --- a/map4.js +++ b/map4.js @@ -350,6 +350,12 @@ // =================================== async function main() { loadParams(); +// ホスト判定 + const p = new URLSearchParams(location.search); + const isHost = p.get("host") === "1"; + + document.getElementById("hostStatus").textContent = +   isHost ? "あなたはホストです" : "一般メンバーです"; let lat = DEFAULT_LAT; let lng = DEFAULT_LNG;