Skip to content

Conversation

@zeh
Copy link
Contributor

@zeh zeh commented Jun 15, 2017

This adds a new boolean parameter to setJSExceptionHandler, keepPreviousHandler. When set to true, it stores the previous handler function and calls it after calling the newly set exception handler. This allows developers to keep the previous functionality (red screen) intact, while still capturing errors (i.e. for analytics purposes).

zeh and others added 2 commits June 15, 2017 11:30
This adds a new boolean parameter, `keepPreviousHandler`. When set to true, it stores the previous handler value and calls it after calling the newly set exception handler. This allows developers to keep the previous functionality (red screen) intact, while still capturing errors (i.e. for analytics purposes).
Copy link
Owner

@a7ul a7ul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me . I think readme could be more elaborative. But I think I ll do that part. Thanks for this PR. :)

@a7ul a7ul merged commit e58268e into a7ul:master Jun 19, 2017
@zeh zeh deleted the keep-previous-handler branch September 24, 2017 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants