Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 882346b

Browse files
committed
wss
1 parent 8b708fa commit 882346b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template/common/layout.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ <h5>第三方账号登录</h5>
222222
<script src="/static/js/libs/md5.js"></script>
223223
<script type="text/javascript">
224224
if (isHttps) {
225-
var wsUrl = 'ws://{{.wshost}}/ws?uid={{.me.Uid}}';
226-
} else {
227225
var wsUrl = 'wss://{{.wshost}}/ws?uid={{.me.Uid}}';
226+
} else {
227+
var wsUrl = 'ws://{{.wshost}}/ws?uid={{.me.Uid}}';
228228
}
229229
var GLaunchTime = {{timestamp .app.LaunchTime}}*1000;
230230
</script>

0 commit comments

Comments
 (0)