Skip to content
This repository was archived by the owner on Mar 6, 2020. It is now read-only.

Commit 173723a

Browse files
author
René Kooi
committed
chat-type: fix emoji badges
1 parent 1bb2807 commit 173723a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"es6-symbol": "^2.0.1",
88
"meld": "1.x",
99
"onecolor": "^2.5.0",
10-
"plug-modules": "^4.2.2",
10+
"plug-modules": "^4.3.3",
1111
"regexp-quote": "0.0.0",
1212
"semver-compare": "^1.0.0",
1313
"sistyl": "^1.0.0"

src/plugins/ChatTypePlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ define(function (require, exports, module) {
7070
if (/^:(.*?):$/.test(message.badge)) {
7171
let badgeBox = el.find('.badge-box');
7272
let emojiName = message.badge.slice(1, -1);
73-
if (emoji.map[emojiName]) {
73+
if (emoji.map.colons[emojiName]) {
7474
badgeBox.find('i').remove();
7575
badgeBox.append(
7676
$('<span />').addClass('emoji-glow extplug-badji').append(
77-
$('<span />').addClass('emoji emoji-' + emoji.map[emojiName])
77+
$('<span />').addClass('emoji emoji-' + emoji.map.colons[emojiName])
7878
)
7979
);
8080
}

0 commit comments

Comments
 (0)