Skip to content

Rollbar.prototype.wait() for browser envrironment #1138

Open
@mstssk

Description

@mstssk

Rollbar.prototype.wait() is missing in browser implementation.

It would seem that the same implementation should be done on the server side.

Rollbar.prototype.wait = function (callback) {
this.client.wait(callback);
};
Rollbar.wait = function (callback) {
if (_instance) {
return _instance.wait(callback);
} else {
var maybeCallback = _getFirstFunction(arguments);
handleUninitialized(maybeCallback);
}
};

Unless there is some special reason, I will create a PR.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions