test client: fix mixed content issues with https
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
dcf1cdf526
commit
aba3e374c3
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue