Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.1.1^2^2
zouap 3 years ago
parent
commit
4ac3b4759c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      public/home/home.js

+ 1
- 1
public/home/home.js View File

@@ -34,7 +34,7 @@ var swiperRepo = new Swiper(".homepro-list", {

var output = document.getElementById("newmessage");
var url = "ws://" + document.location.host + "/action/notification"
if(document.location.host == "git.openi.org.cn"){
if(document.location.host == "git.openi.org.cn" || document.URL.startsWith("https")){
url = "wss://" + document.location.host + "/action/notification"
}
var socket = new WebSocket(url);


Loading…
Cancel
Save