added auto port finding to both web apps

This commit is contained in:
UpstreamData
2022-04-14 09:43:43 -06:00
parent 3670a02aec
commit 3604957c83
3 changed files with 3 additions and 3 deletions

View File

@@ -91,7 +91,7 @@
</div>
<script>
var ws = new WebSocket("ws://{{request.url.hostname}}:80/miner/{{miner}}/ws");
var ws = new WebSocket("ws://{{request.url.hostname}}:{{request.url.port}}/miner/{{miner}}/ws");
let all_data = []
let all_labels = []
ws.onmessage = function(event) {