@reclaimprotocol/js-sdk 5.6.0-dev.0 → 5.6.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -84,7 +84,7 @@ var require_package = __commonJS({
|
|
|
84
84
|
"package.json"(exports2, module2) {
|
|
85
85
|
module2.exports = {
|
|
86
86
|
name: "@reclaimprotocol/js-sdk",
|
|
87
|
-
version: "5.6.0-dev.
|
|
87
|
+
version: "5.6.0-dev.1",
|
|
88
88
|
description: "Designed to request proofs from the Reclaim protocol and manage the flow of claims and witness interactions.",
|
|
89
89
|
main: "dist/index.js",
|
|
90
90
|
types: "dist/index.d.ts",
|
|
@@ -3758,8 +3758,8 @@ var ReclaimProofRequest = class _ReclaimProofRequest {
|
|
|
3758
3758
|
}
|
|
3759
3759
|
};
|
|
3760
3760
|
const onVisibilityChange = () => {
|
|
3761
|
+
logger11.info(`App maybe installed, document hidden ${document.hidden}`);
|
|
3761
3762
|
if (document.hidden) {
|
|
3762
|
-
logger11.info("App maybe installed, document hidden");
|
|
3763
3763
|
appInstalled = true;
|
|
3764
3764
|
cleanup();
|
|
3765
3765
|
window.location.href = deepLink;
|
|
@@ -3768,12 +3768,13 @@ var ReclaimProofRequest = class _ReclaimProofRequest {
|
|
|
3768
3768
|
document.addEventListener("visibilitychange", onVisibilityChange, { once: true });
|
|
3769
3769
|
iframe.src = deepLink;
|
|
3770
3770
|
timeoutId = setTimeout(() => {
|
|
3771
|
+
logger11.info(`App may not be installed, document hidden ${document.hidden}, appInstalled: ${appInstalled}`);
|
|
3771
3772
|
document.removeEventListener("visibilitychange", onVisibilityChange);
|
|
3772
3773
|
cleanup();
|
|
3773
3774
|
if (!appInstalled) {
|
|
3774
3775
|
window.location.href = iosAppInstallUrl;
|
|
3775
3776
|
}
|
|
3776
|
-
},
|
|
3777
|
+
}, 3e3);
|
|
3777
3778
|
} catch (e) {
|
|
3778
3779
|
console.error("something went wrong during launch, opening store", e);
|
|
3779
3780
|
window.location.href = iosAppInstallUrl;
|