[fix] https

This commit is contained in:
gzezFISHER 2022-09-21 14:12:33 +08:00
parent f1645ecaaa
commit 3b6aceb370

View File

@ -11,7 +11,6 @@ import 'katex/dist/katex.min.css'
let username; let username;
let is_reconnection = false; let is_reconnection = false;
let last_command = null; let last_command = null;
const server = `ws://${location.host}`;
let ws; let ws;
let md; let md;
@ -151,7 +150,7 @@ async function init() {
md.use(rkatex); md.use(rkatex);
md.inline.ruler.enable(['mark', 'sup', 'sub']); md.inline.ruler.enable(['mark', 'sup', 'sub']);
const ws = new io(server); const ws = new io();
ws.on('connect', () => { ws.on('connect', () => {
if (is_reconnection) { if (is_reconnection) {