We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1db67e3 commit 98973ffCopy full SHA for 98973ff
1 file changed
src/utils/request-queue.js
@@ -23,10 +23,8 @@ class RequestQueue {
23
// Mark if page environment is unloading
24
if (document.visibilityState === 'hidden') {
25
this.pageUnloading = true;
26
- }
27
-
28
- // Send events once page is visible
29
- if (document.visibilityState === 'visible' && this.pageUnloading === true) {
+ } else if (document.visibilityState === 'visible' && this.pageUnloading === true) {
+ // Send events once page is visible again
30
this.pageUnloading = false;
31
32
if (this.sendTrackingEvents) {
0 commit comments