|
|
|
@@ -33,7 +33,9 @@ var swiperRepo = new Swiper(".homepro-list", { |
|
|
|
}); |
|
|
|
|
|
|
|
var output = document.getElementById("newmessage"); |
|
|
|
var url = "ws://" + document.location.host + "/action/notification" |
|
|
|
console.log("document.location.host="+document.location.host); |
|
|
|
console.log("document.URL="+document.URL); |
|
|
|
var url = "ws://" + document.location.host + "/action/notification"; |
|
|
|
if(document.location.host == "git.openi.org.cn" || document.URL.startsWith("https")){ |
|
|
|
url = "wss://" + document.location.host + "/action/notification" |
|
|
|
} |
|
|
|
|