Update
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
|
||||
<script>
|
||||
const $ = (id) => document.getElementById(id);
|
||||
const ws = new WebSocket(`ws://${location.host}`);
|
||||
const ws = new WebSocket(`${location.protocol === "https:" ? "wss:" : "ws:"}//${location.host}`);
|
||||
|
||||
ws.onmessage = (e) => {
|
||||
const s = JSON.parse(e.data);
|
||||
|
||||
Reference in New Issue
Block a user