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:
parent
75e7e56309
commit
b0cbcc73fb
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user