added local play by pressing cancel on the JS prompt

removed the uncessesary null check in the validate_name
This commit is contained in:
2026-06-02 12:14:14 +01:00
parent 0e4d5d7686
commit 219f4086aa
4 changed files with 48 additions and 31 deletions
+2 -1
View File
@@ -15,8 +15,9 @@
<p>Total number of resets and personal bests of each username</p>
<div id="pingscore-table"></div>
</body>
<script src="/address.js"></script>
<script>
const ws = new WebSocket('ws://deadvey.com:8084/ws-leaderboard');
const ws = new WebSocket(`ws://${ADDRESS}:8084/ws-leaderboard`);
const regex = new RegExp("^[a-zA-Z0-9_-]+$");
ws.onopen = (event) => {
ws.send('0'); // send all