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

@ -3,8 +3,8 @@
<head>
<link rel="stylesheet" href="dist/themes/default/style.min.css"/>
<link rel="stylesheet" href="css/login_dialog.css"/>
<script src="https://cdn.jsdelivr.net/npm/sha256-uint8array/dist/sha256-uint8array.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/sha256-uint8array/dist/sha256-uint8array.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="dist/jstree.min.js"></script>
<script src="dist/jquery.leanModal.min.js"></script>
<script src="/js/main.js?v=0.1.3" type="module"></script>

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