1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00

Update client.js

This commit is contained in:
MinusGix 2019-04-25 16:54:43 -05:00 committed by GitHub
parent 75e7e56309
commit b0cbcc73fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,7 +177,7 @@ function pushMessage(args) {
// Message container // Message container
var messageEl = document.createElement('div'); var messageEl = document.createElement('div');
if (args.text.includes('@' + myNick.split('#')[0] + ' ')) { if (typeof(myNick) === 'string' && args.text.includes('@' + myNick.split('#')[0] + ' ')) {
messageEl.classList.add('refmessage'); messageEl.classList.add('refmessage');
} else { } else {
messageEl.classList.add('message'); messageEl.classList.add('message');