diff --git a/Safari iOS/Resources/ios-specific-content.js b/Safari iOS/Resources/ios-specific-content.js index a4de3b04..faf6fcca 100644 --- a/Safari iOS/Resources/ios-specific-content.js +++ b/Safari iOS/Resources/ios-specific-content.js @@ -1,8 +1,8 @@ // Copyright © 2022 Tokenary. All rights reserved. function didChangeVisibility() { - if (document.visibilityState === 'visible' && pendingRequestsIds.size != 0) { - pendingRequestsIds.forEach(id => { + if (document.visibilityState === 'visible' && document.pendingRequestsIds.size != 0) { + document.pendingRequestsIds.forEach(id => { const request = {id: id, subject: "getResponse"}; browser.runtime.sendMessage(request).then((response) => { sendToInpage(response, id);