mirror of
https://github.com/craigerl/aprsd.git
synced 2025-07-15 06:55:15 -04:00
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:
parent
2416f0ea1a
commit
34311f0fbd
@ -2,11 +2,11 @@ var cleared = false;
|
|||||||
var callsign_list = {};
|
var callsign_list = {};
|
||||||
var message_list = {};
|
var message_list = {};
|
||||||
var from_msg_list = {};
|
var from_msg_list = {};
|
||||||
|
const socket = io("/sendmsg");
|
||||||
|
|
||||||
function size_dict(d){c=0; for (i in d) ++c; return c}
|
function size_dict(d){c=0; for (i in d) ++c; return c}
|
||||||
|
|
||||||
function init_chat() {
|
function init_chat() {
|
||||||
const socket = io("/sendmsg");
|
|
||||||
socket.on('connect', function () {
|
socket.on('connect', function () {
|
||||||
console.log("Connected to socketio");
|
console.log("Connected to socketio");
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user