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 6deffe7 commit e80e0d8Copy full SHA for e80e0d8
packages/utils/src/instrument.ts
@@ -330,7 +330,14 @@ function instrumentHistory(): void {
330
to,
331
});
332
if (oldOnPopState) {
333
- return oldOnPopState.apply(this, args);
+ // Apparently this can throw in Firefox when incorrectly implemented plugin is installed.
334
+ // https://github.com/getsentry/sentry-javascript/issues/3344
335
+ // https://github.com/bugsnag/bugsnag-js/issues/469
336
+ try {
337
+ return oldOnPopState.apply(this, args);
338
+ } catch (_oO) {
339
+ // no-empty
340
+ }
341
}
342
};
343
0 commit comments