Browse Source

提交代码。

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

+ 5
- 0
public/home/home.js View File

@@ -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 () {


Loading…
Cancel
Save