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 57fb879 commit 033e78cCopy full SHA for 033e78c
src/events/components/events.ts
@@ -167,7 +167,9 @@ function flushQueue() {
167
eventQueue = []
168
169
try {
170
- navigator.sendBeacon(endpoint, new Blob([eventsBody], { type: 'application/json' }))
+ if (ANALYTICS_ENABLED) {
171
+ navigator.sendBeacon(endpoint, new Blob([eventsBody], { type: 'application/json' }))
172
+ }
173
} catch (err) {
174
console.warn(`sendBeacon to '${endpoint}' failed.`, err)
175
}
0 commit comments