Skip to content

Commit

Permalink
sendBeacon now returns success state
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Tellis committed Jun 23, 2014
1 parent 4576965 commit 1614c7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions boomerang.js
Expand Up @@ -788,7 +788,7 @@ boomr = {
}
if(!this.plugins[k].is_complete()) {
BOOMR.debug("Plugin " + k + " is not complete, deferring beacon send");
return this;
return false;
}
}
}
Expand All @@ -808,7 +808,7 @@ boomr = {
// in the `before_beacon` event instead of a simple GET request
if(!impl.beacon_url) {
BOOMR.debug("No beacon_url, but would have sent: " + BOOMR.utils.objectToString(impl.vars));
return this;
return true;
}

data = [];
Expand Down Expand Up @@ -842,7 +842,7 @@ boomr = {
}
}

return this;
return true;
}

};
Expand Down

0 comments on commit 1614c7b

Please sign in to comment.