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