pull/1/head
yflory 8 years ago
parent 47c6c64b8a
commit 8cf694bea6

@ -1203,7 +1203,7 @@ define([
var split = str.split(emoji_patt); var split = str.split(emoji_patt);
var arr = []; var arr = [];
for (var i=0; i<split.length; i++) { for (var i=0; i<split.length; i++) {
var char = split[i] var char = split[i];
if (char !== "") { if (char !== "") {
arr.push(char); arr.push(char);
} }
@ -1214,7 +1214,7 @@ define([
if (!str || !str.trim()) { return '?'; } if (!str || !str.trim()) { return '?'; }
var emojis = emojiStringToArray(str); var emojis = emojiStringToArray(str);
return isEmoji(emojis[0])? emojis[0]: str[0]; return isEmoji(emojis[0])? emojis[0]: str[0];
} };
$(window.document).on('decryption', function (e) { $(window.document).on('decryption', function (e) {
var decrypted = e.originalEvent; var decrypted = e.originalEvent;
if (decrypted.callback) { if (decrypted.callback) {

Loading…
Cancel
Save