diff --git a/aprsd/web/chat/static/js/send-message.js b/aprsd/web/chat/static/js/send-message.js index 1e0fa58..8be5d5d 100644 --- a/aprsd/web/chat/static/js/send-message.js +++ b/aprsd/web/chat/static/js/send-message.js @@ -313,6 +313,7 @@ function create_callsign_tab(callsign, active=false) { //item_html += '' @@ -407,6 +408,9 @@ function append_message(callsign, msg, msg_html) { tab_notify_id = tab_notification_id(callsign, true); // get the current count of notifications count = parseInt($(tab_notify_id).text()); + if (isNaN(count)) { + count = 0; + } count += 1; $(tab_notify_id).text(count); $(tab_notify_id).removeClass('visually-hidden');