|
|
|
@@ -37,8 +37,7 @@ 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"); |
|
|
|
var socket = new WebSocket(url); |
|
|
|
|
|
|
|
socket.onopen = function () { |
|
|
|
console.log("message has connected."); |
|
|
|
|