Skip to content

Commit 4fba325

Browse files
jrenczkamilogorek
authored andcommitted
fix: typo in tracekit.ts (#1830)
See: csnover/TraceKit#74
1 parent 0942ab3 commit 4fba325

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/browser/src/tracekit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ TraceKit.report = (function reportModuleWrapper() {
462462
*/
463463
function uninstallGlobalUnhandledRejectionHandler() {
464464
if (_onUnhandledRejectionHandlerInstalled) {
465-
window.onerror = _oldOnunhandledrejectionHandler;
465+
window.onunhandledrejection = _oldOnunhandledrejectionHandler;
466466
_onUnhandledRejectionHandlerInstalled = false;
467467
}
468468
}

0 commit comments

Comments
 (0)