🎨 ws 协议

This commit is contained in:
Liang Ding 2019-05-17 13:04:56 +08:00
parent 0d5f5f80f8
commit f32e0a21d3
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
2 changed files with 2 additions and 2 deletions

View File

@ -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}}',

View File

@ -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,