|
@@ -372,9 +372,13 @@ function _visitNode(node, callback) {
|
372
|
372
|
// Required by:
|
373
|
373
|
// - lib-jitsi-meet
|
374
|
374
|
// - Strophe
|
375
|
|
- global.clearTimeout = window.clearTimeout = BackgroundTimer.clearTimeout;
|
376
|
|
- global.clearInterval = window.clearInterval = BackgroundTimer.clearInterval;
|
377
|
|
- global.setInterval = window.setInterval = BackgroundTimer.setInterval;
|
378
|
|
- global.setTimeout = window.setTimeout = BackgroundTimer.setTimeout;
|
|
375
|
+ global.clearTimeout = window.clearTimeout
|
|
376
|
+ = BackgroundTimer.clearTimeout.bind(BackgroundTimer);
|
|
377
|
+ global.clearInterval = window.clearInterval
|
|
378
|
+ = BackgroundTimer.clearInterval.bind(BackgroundTimer);
|
|
379
|
+ global.setInterval = window.setInterval
|
|
380
|
+ = BackgroundTimer.setInterval.bind(BackgroundTimer);
|
|
381
|
+ global.setTimeout = window.setTimeout
|
|
382
|
+ = BackgroundTimer.setTimeout.bind(BackgroundTimer);
|
379
|
383
|
|
380
|
384
|
})(global || window || this); // eslint-disable-line no-invalid-this
|