1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-20 21:10:54 +00:00

Added basic support for highlighting arbitrary words in chat. Added capitalization to auto-completion entries.

This commit is contained in:
SirStendec 2015-01-20 20:25:26 -05:00
parent 343a9c927b
commit 3d68cd45ab
5 changed files with 186 additions and 14 deletions

View file

@ -159,14 +159,14 @@ FFZ.prototype._legacy_load_set = function(set_id, callback, tries) {
}).fail(function(data) {
if ( data.status == 404 )
return callback && callback(false);
return typeof callback == "function" && callback(false);
tries = tries || 0;
tries++;
if ( tries < 10 )
return this._legacy_load_set(set_id, callback, tries);
return callback && callback(false);
return typeof callback == "function" && callback(false);
});
}