fixed an issue in the mobile webchat

The global socket var wasn't defined globally in send-message-mobile.js
This commit is contained in:
Hemna 2023-08-23 13:15:50 -04:00
parent 2416f0ea1a
commit 34311f0fbd
1 changed files with 1 additions and 1 deletions

View File

@ -2,11 +2,11 @@ var cleared = false;
var callsign_list = {};
var message_list = {};
var from_msg_list = {};
const socket = io("/sendmsg");
function size_dict(d){c=0; for (i in d) ++c; return c}
function init_chat() {
const socket = io("/sendmsg");
socket.on('connect', function () {
console.log("Connected to socketio");
});