diff --git a/src/components/Wallet-Leader.vue b/src/components/Wallet-Leader.vue index 096f1f8..38a2c08 100644 --- a/src/components/Wallet-Leader.vue +++ b/src/components/Wallet-Leader.vue @@ -7,7 +7,7 @@ id="funwallet-iframe" is-fun-wallet="true" is-leader="true" - :onload="leaderLoaded()" + @load="leaderLoaded" frameborder="0" > @@ -26,11 +26,8 @@ export default { }, methods: { leaderLoaded() { - // fix this race condition - setTimeout(() => { - window.funwallet.sdk.init(); - this.registerWalletEventsCallback(); - }, 2000); + window.funwallet.sdk.init(); + this.registerWalletEventsCallback(); }, }, };