feat: add settings and browser input

This commit is contained in:
2026-06-25 07:23:34 +05:00
parent b3b0c645e9
commit 6c16d97670
12 changed files with 165 additions and 17 deletions
+5 -2
View File
@@ -14,8 +14,9 @@
`${CONFIG.texts.finalScoreLabel} <span id="final-score">0</span>`;
})();
const params = new URLSearchParams(location.search);
const channel = params.get("channel") || "ku6ep_xboctuk";
const gameParams = new URLSearchParams(location.search);
const channel = gameParams.get("channel") || "ku6ep_xboctuk";
const channelName = channel;
const client = new tmi.Client({ channels: [channel] });
client.connect();
@@ -24,6 +25,8 @@ client.on("message", (channel, tags, message, self) => {
InputModule.submitLine(message, username);
});
initKeyboardBridge();
window.addEventListener("resize", recalc);
recalc();
runIntro();