diff --git a/public/home/home.js b/public/home/home.js index 92eb86c1d..7f8aa070d 100644 --- a/public/home/home.js +++ b/public/home/home.js @@ -33,6 +33,11 @@ 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"){ + url = "wss://" + document.location.host + "/action/notification" +} + var socket = new WebSocket("ws://" + document.location.host + "/action/notification"); socket.onopen = function () {