Skip to content

Commit

Permalink
fix emoji for windows platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaledgarbaya authored May 15, 2017
1 parent 9dfd3eb commit 6ff6b1a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ const emojic = module.exports = {};
// Append the chars to it
iterateObject(emojis, function (value, name) {

if (process.platform === "win32") {
return "";
}

switch (name) {
case "+1":
name = "thumbs-up";
Expand All @@ -26,7 +22,7 @@ iterateObject(emojis, function (value, name) {
name = "thumbs-down";
break;
}
emojic[camelo(name)] = value.char;
emojic[camelo(name)] = process.platform === "win32" ? "" : value.char;
});

// Free the memory
Expand Down

0 comments on commit 6ff6b1a

Please sign in to comment.