fix html to support not only localhost access

pull/236/head
Lucien 2023-03-25 20:45:53 +08:00
parent dc3bb5ee38
commit d38563a73d
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
<ul id='messageBox'>
</ul>
<script>
let ws = new WebSocket("ws://localhost:8000/ws");
let ws = new WebSocket("ws://" + location.host + "/ws");
let history = [];
let last_message_element = null;