Browse Source

提交代码。

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

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

@@ -1,4 +1,12 @@

var token;
if(isEmpty(token)){
var meta = $("meta[name=_uid]");
if(!isEmpty(meta)){
token = meta.attr("content");
console.log("token is uid:" + token);
}
}
var output = document.getElementById("newmessage");
var socket = new WebSocket("ws://" + document.location.host + "/action/notification");



Loading…
Cancel
Save