mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +00:00
3.5.426. Fix ember navigation to game directories. Fix mod badges in Firefox. Change badge rendering for the API to not needlessly duplicate data structures. Add bttv-room-message event for API. Clean up logging output for Firefox developers. Fix issue in socket handling. Tweak chat sub notification appearance. Closes #104
This commit is contained in:
parent
87e7a7fb29
commit
7e88c18ead
11 changed files with 99 additions and 52 deletions
|
@ -307,10 +307,11 @@ FFZ.prototype.ws_create = function() {
|
|||
var success = cmd === 'ok',
|
||||
has_callback = typeof f._ws_callbacks[request] === "function";
|
||||
|
||||
if ( ! has_callback && (!success || constants.DEBUG) )
|
||||
f.log("Socket Reply to " + request + " - " + (success ? "SUCCESS" : "FAIL"), data, false, true);
|
||||
if ( ! has_callback ) {
|
||||
if ( ! success || constants.DEBUG)
|
||||
f.log("Socket Reply to " + request + " - " + (success ? "SUCCESS" : "FAIL"), data, false, true);
|
||||
|
||||
else {
|
||||
} else {
|
||||
try {
|
||||
f._ws_callbacks[request](success, data);
|
||||
} catch(err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue