From aba3e374c333ea4f3758d1775b03673b31d984f8 Mon Sep 17 00:00:00 2001 From: Arksine Date: Fri, 21 May 2021 15:05:15 -0400 Subject: [PATCH] test client: fix mixed content issues with https Signed-off-by: Eric Callahan --- test/client/index.html | 4 ++-- test/client/js/main.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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