diff options
author | MinusGix <MinusGix@gmail.com> | 2019-04-25 23:54:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-25 23:54:43 +0200 |
commit | b0cbcc73fb9cb7da87020d4a1f9b471042061ab8 (patch) | |
tree | ca12596ed0eeaab32546d711eab9ac2b9b532fc3 /client | |
parent | Merge pull request #59 from MinusGix/patch-4 (diff) | |
download | hackchat-b0cbcc73fb9cb7da87020d4a1f9b471042061ab8.tar.gz hackchat-b0cbcc73fb9cb7da87020d4a1f9b471042061ab8.zip |
Update client.js
Diffstat (limited to 'client')
-rw-r--r-- | client/client.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/client.js b/client/client.js index ab766b0..ec87e6b 100644 --- a/client/client.js +++ b/client/client.js @@ -177,7 +177,7 @@ function pushMessage(args) { // Message container 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'); } else { messageEl.classList.add('message'); |