Skip to content

Commit

Permalink
fix: preview ignoring current skin closes #65
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed May 6, 2018
1 parent 77aa1a1 commit 9a89337
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib/emoji/emoji.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,12 @@ export class EmojiService {
emoji = matches[1];

if (matches[2]) {
skin = (<Emoji['skin']>parseInt(matches[2], 10));
skin = <Emoji['skin']>parseInt(matches[2], 10);
}
}
emojiData = this.names[emoji];
} else if (emoji.id) {
emojiData = this.names[emoji.id];
if (skin) {
skin = emoji.skin;
}
}

if (!emojiData) {
Expand Down

0 comments on commit 9a89337

Please sign in to comment.