@matchain/matchid-sdk-react 0.1.40-alpha.2 → 0.1.40-alpha.3
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/{chunk-3CHFSRD3.mjs → chunk-XXZABHH6.mjs} +2 -5
- package/dist/{chunk-3CHFSRD3.mjs.map → chunk-XXZABHH6.mjs.map} +1 -1
- package/dist/{chunk-6RESIJXV.mjs → chunk-ZBOW562R.mjs} +2 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +2 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-6RESIJXV.mjs.map → chunk-ZBOW562R.mjs.map} +0 -0
|
@@ -2885,9 +2885,6 @@ function useWalletInit({
|
|
|
2885
2885
|
document.body.insertBefore(iframe, document.body.firstChild);
|
|
2886
2886
|
window.sendMatchWalletMessage = (method, data, retry = 5, times = 0) => {
|
|
2887
2887
|
try {
|
|
2888
|
-
if (!iframeLoaded) {
|
|
2889
|
-
throw new Error("Wallet not ready");
|
|
2890
|
-
}
|
|
2891
2888
|
if (!walletInited) {
|
|
2892
2889
|
throw new Error("Wallet not inited");
|
|
2893
2890
|
}
|
|
@@ -2895,7 +2892,7 @@ function useWalletInit({
|
|
|
2895
2892
|
throw new Error("Wallet not found");
|
|
2896
2893
|
}
|
|
2897
2894
|
} catch (error) {
|
|
2898
|
-
console.error(`wallet init[${
|
|
2895
|
+
console.error(`wallet init[${times}/${retry}]`, error);
|
|
2899
2896
|
if (times < retry) {
|
|
2900
2897
|
setTimeout(() => {
|
|
2901
2898
|
window.sendMatchWalletMessage(method, data, retry, times + 1);
|
|
@@ -3923,4 +3920,4 @@ export {
|
|
|
3923
3920
|
MatchProvider,
|
|
3924
3921
|
useMatch
|
|
3925
3922
|
};
|
|
3926
|
-
//# sourceMappingURL=chunk-
|
|
3923
|
+
//# sourceMappingURL=chunk-XXZABHH6.mjs.map
|