We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 798d219 commit 3abd8baCopy full SHA for 3abd8ba
docs/usage.rst
@@ -263,9 +263,9 @@ For example, the `RSVP.js library
263
264
.. code-block:: javascript
265
266
- window.addEventListener('unhandledrejection', function(evt) {
+ window.onunhandledrejection = function(evt) {
267
Raven.captureException(evt.reason);
268
- });
+ };
269
270
Please consult your promise library documentation on how to hook into its global unhandled rejection handler, if it exposes one.
271
0 commit comments