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 f0d21c2 commit b421219Copy full SHA for b421219
packages/browser/src/transports/utils.ts
@@ -93,10 +93,8 @@ export function sendReport(url: string, body: string): void {
93
if (hasSendBeacon) {
94
// Prevent illegal invocations - https://xgwang.me/posts/you-may-not-know-beacon/#it-may-throw-error%2C-be-sure-to-catch
95
const sendBeacon = global.navigator.sendBeacon.bind(global.navigator);
96
- return sendBeacon(url, body);
97
- }
98
-
99
- if (supportsFetch()) {
+ sendBeacon(url, body);
+ } else if (supportsFetch()) {
100
const fetch = getNativeFetchImplementation();
101
fetch(url, {
102
body,
0 commit comments