@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
package/dist/hooks/index.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -4084,9 +4084,6 @@ function useWalletInit({
|
|
|
4084
4084
|
document.body.insertBefore(iframe, document.body.firstChild);
|
|
4085
4085
|
window.sendMatchWalletMessage = (method, data, retry = 5, times = 0) => {
|
|
4086
4086
|
try {
|
|
4087
|
-
if (!iframeLoaded) {
|
|
4088
|
-
throw new Error("Wallet not ready");
|
|
4089
|
-
}
|
|
4090
4087
|
if (!walletInited) {
|
|
4091
4088
|
throw new Error("Wallet not inited");
|
|
4092
4089
|
}
|
|
@@ -4094,7 +4091,7 @@ function useWalletInit({
|
|
|
4094
4091
|
throw new Error("Wallet not found");
|
|
4095
4092
|
}
|
|
4096
4093
|
} catch (error) {
|
|
4097
|
-
console.error(`wallet init[${
|
|
4094
|
+
console.error(`wallet init[${times}/${retry}]`, error);
|
|
4098
4095
|
if (times < retry) {
|
|
4099
4096
|
setTimeout(() => {
|
|
4100
4097
|
window.sendMatchWalletMessage(method, data, retry, times + 1);
|