switch from twitter's emoji lib to emojione
This commit is contained in:
parent
fe3360df15
commit
f042f729e1
3 changed files with 18 additions and 11 deletions
|
@ -141,11 +141,11 @@ weechat.filter('getBufferQuickKeys', function () {
|
|||
};
|
||||
});
|
||||
|
||||
// Emojifis the string using https://github.com/twitter/twemoji
|
||||
// Emojifis the string using https://github.com/Ranks/emojione
|
||||
weechat.filter('emojify', function() {
|
||||
return function(text, enable_JS_Emoji) {
|
||||
if (enable_JS_Emoji === true) {
|
||||
return twemoji.parse(text);
|
||||
return emojione.unicodeToImage(text);
|
||||
} else {
|
||||
return(text);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue