Skip to content

Commit

Permalink
Merge pull request #819 from activescott/fix/818-loadFull
Browse files Browse the repository at this point in the history
fix: gracefully handle loadFull being called multiple times
  • Loading branch information
waltjones authored Jan 20, 2020
2 parents 95ded0e + ddb4022 commit 430aea7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdks/rollbar.js/src/browser/rollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,10 @@ Rollbar.prototype._createItem = function(args) {
return _.createItem(args, logger, this);
};

Rollbar.prototype.loadFull = function() {
logger.info('Unexpected Rollbar.loadFull() called on a Notifier instance. This can happen when Rollbar is loaded multiple times.');
};

function _getFirstFunction(args) {
for (var i = 0, len = args.length; i < len; ++i) {
if (_.isFunction(args[i])) {
Expand Down

0 comments on commit 430aea7

Please sign in to comment.