plugin-window-events

The plugin-window-events plugin binds to the window.onerror and window.onunhandledrejection event handlers to catch any errors that are otherwise not caught elsewhere in your code.

import { plugin } from `@appsignal/plugin-window-events`
appsignal.use(plugin(options))

plugin options

The plugin can be initialized with the following options:

ParamTypeDescription
onerrorBoolean(optional) A boolean value representing whether the plugin should bind to the window.onerror handler. Defaults to true.
onunhandledrejectionBoolean(optional) A boolean value representing whether the plugin should bind to the window.onunhandledrejection handler. Defaults to true.

Want to help us improve this documentation page?

Create a pull request

Need more help?

Contact us and speak directly with the engineers working on AppSignal. They will help you get set up, tweak your code and make sure you get the most out of using AppSignal.

Contact us

Start a trial - 30 days free

AppSignal is a great way to monitor your Ruby, Elixir & Node.js applications. Works great with Rails, Phoenix, Express and other frameworks, with support for background jobs too. Let's improve your apps together.

Start a trial