Skip to content

Commit

Permalink
feat(core): Allow client.notify to be passed directly to callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
bengourley committed Nov 14, 2018
1 parent 1fbf391 commit dd4030b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/core/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ class BugsnagClient {
this.BugsnagReport = BugsnagReport
this.BugsnagBreadcrumb = BugsnagBreadcrumb
this.BugsnagSession = BugsnagSession

var self = this
var notify = this.notify
this.notify = function () {
return notify.apply(self, arguments)
}
}

setOptions (opts) {
Expand Down

0 comments on commit dd4030b

Please sign in to comment.