🎨 ws 协议
This commit is contained in:
parent
0d5f5f80f8
commit
f32e0a21d3
|
@ -547,7 +547,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var channelScheme = "https" === window.location.protocol ? "wss":"ws";
|
||||
var channelScheme = -1 < window.location.protocol.indexOf("https") ? "wss":"ws";
|
||||
var channel = channelScheme + "://" + window.location.hostname + ":" + window.location.port;
|
||||
var config = {
|
||||
"pathSeparator": '{{.pathSeparator}}',
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
<div id="dialogAbout" class="fn-none"></div>
|
||||
<div id="dialogShare" class="fn-none"></div>
|
||||
<script>
|
||||
var channelScheme = "https" === window.location.protocol ? "wss":"ws";
|
||||
var channelScheme = -1 < window.location.protocol.indexOf("https") ? "wss":"ws";
|
||||
var channel = channelScheme + "://" + window.location.hostname + ":" + window.location.port;
|
||||
var config = {
|
||||
"channel": channel,
|
||||
|
|
Loading…
Reference in New Issue