Skip to content

Commit

Permalink
fix: add missing event properties
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumarrs committed Jan 10, 2025
1 parent e67f70e commit 7a74983
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/analytics-js-common/src/utilities/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ const dispatchErrorEvent = (error: any) => {
}
}

(globalThis as typeof window).dispatchEvent(new ErrorEvent('error', { error }));
(globalThis as typeof window).dispatchEvent(
new ErrorEvent('error', { error, bubbles: true, cancelable: true, composed: true }),
);
};

export { getMutatedError, dispatchErrorEvent, MANUAL_ERROR_IDENTIFIER, getStacktrace };

0 comments on commit 7a74983

Please sign in to comment.