From 16adc01f842e140635034b5f5fb05402ba0edfe9 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 10 Jan 2022 17:34:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- public/home/home.js | 5 +++++ 1 file changed, 5 insertions(+) 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 () {