test: always use background timers on iOS

This commit is contained in:
Saúl Ibarra Corretgé 2022-02-09 16:53:18 +01:00
parent ef9913c1c7
commit c8a24d55f8
1 changed files with 2 additions and 2 deletions

View File

@ -441,12 +441,12 @@ function _visitNode(node, callback) {
// Required by:
// - lib-jitsi-meet
// - Strophe
if (Platform.OS === 'android') {
//if (Platform.OS === 'android') {
global.clearTimeout = BackgroundTimer.clearTimeout.bind(BackgroundTimer);
global.clearInterval = BackgroundTimer.clearInterval.bind(BackgroundTimer);
global.setInterval = BackgroundTimer.setInterval.bind(BackgroundTimer);
global.setTimeout = (fn, ms = 0) => BackgroundTimer.setTimeout(fn, ms);
}
//}
// localStorage
if (typeof global.localStorage === 'undefined') {