Skip to content

Commit

Permalink
publish v3.0.14 fix a bug when center room cannot display correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
bergwhite committed Jul 25, 2017
1 parent 48ba34b commit c445680
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nodejs-chat",
"version": "3.0.13",
"version": "3.0.14",
"private": true,
"scripts": {
"build": "gulp build",
Expand Down
3 changes: 2 additions & 1 deletion public/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@
user = nChat.method.parseMsgVal(user)
time = nChat.method.parseMsgVal(time)
msg = nChat.method.parseMsgVal(msg)
img = nChat.method.parseMsgVal(img)
let bubbleInfoEl = ''
if (time !== '') {
bubbleInfoEl = `
Expand All @@ -166,7 +165,9 @@
}
if (typeof img === 'undefined' || img === null) {
img = nChat.data.defaultUserImg
img = nChat.method.parseMsgVal(img)
}
img = nChat.method.parseMsgVal(img)
const ctx = `<div class="bubble bubble-${type}">
<div class="bubble-head">
<img src=${img} class="user-img">
Expand Down

0 comments on commit c445680

Please sign in to comment.