Skip to content

Commit 993b634

Browse files
committed
updated (attr 'size' as integer type)
1 parent e89c972 commit 993b634

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/modules/qbChatHelpers.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,11 @@ var qbChatHelpers = {
165165
var attributes = extraParams.childNodes[i].attributes;
166166

167167
for (var j = 0, len2 = attributes.length; j < len2; j++) {
168-
attach[attributes[j].name] = attributes[j].value;
168+
if (attributes[j].name === 'size'){
169+
attach[attributes[j].name] = parseInt(attributes[j].value);
170+
} else {
171+
attach[attributes[j].name] = attributes[j].value;
172+
}
169173
}
170174

171175
attachments.push(attach);

0 commit comments

Comments
 (0)