Merge pull request #570 from glowing-bear/emojione-fixes

Emojione fixes
This commit is contained in:
Lorenz Hübschle-Schneider 2015-03-23 16:04:06 +01:00
commit 2be08c57d2
2 changed files with 2 additions and 2 deletions

View file

@ -144,7 +144,7 @@ weechat.filter('getBufferQuickKeys', function () {
// Emojifis the string using https://github.com/Ranks/emojione
weechat.filter('emojify', function() {
return function(text, enable_JS_Emoji) {
if (enable_JS_Emoji === true) {
if (enable_JS_Emoji === true && window.emojione !== undefined) {
return emojione.unicodeToImage(text);
} else {
return(text);