test client: fix mixed content issues with https

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine
2021-05-21 15:05:15 -04:00
parent dcf1cdf526
commit aba3e374c3
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
import JsonRPC from "./json-rpc.js?v=0.1.2";
var origin = location.origin;
var ws_url = (window.location.protocol == "https" ? "wss://" : "ws://")
var ws_url = (window.location.protocol == "https:" ? "wss://" : "ws://")
+ location.host;
// API Definitions