diff --git a/public/home/home.js b/public/home/home.js index 2f9ee90fd..6859e85b7 100644 --- a/public/home/home.js +++ b/public/home/home.js @@ -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);