diff --git a/test/client/index.html b/test/client/index.html index 11d8f2a..eafed53 100644 --- a/test/client/index.html +++ b/test/client/index.html @@ -3,8 +3,8 @@ - - + + diff --git a/test/client/js/main.js b/test/client/js/main.js index 3d51669..40c3619 100644 --- a/test/client/js/main.js +++ b/test/client/js/main.js @@ -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