Skip to content

Commit

Permalink
Quick fix to the interval/timeout namespace conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
powerivq committed Feb 3, 2025
1 parent 2ce838d commit b79fa89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 3p/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ export function setInViewportForTesting(inV) {
// Active intervals. Must be global, because people clear intervals
// with clearInterval from a different window.
const intervals = {};
let intervalId = 1;

// TODO(40235): This is so we avoid the ID range of setTimeout. We
// should also patch setTimeout and clearTimeout to avoid having to
// use this.
let intervalId = 10000000;

/**
* Add instrumentation to a window and all child iframes.
Expand Down

0 comments on commit b79fa89

Please sign in to comment.