Skip to content

Commit

Permalink
docs: remove unnecessary binding
Browse files Browse the repository at this point in the history
  • Loading branch information
janmichek authored and davidyuk committed Jul 22, 2022
1 parent b997a4d commit f60d1b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/browser/aepp/src/Connect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default {
methods: {
async scanForWallets () {
return new Promise((resolve) => {
const handleWallets = async function ({ wallets, newWallet }) {
const handleWallets = async ({ wallets, newWallet }) => {
newWallet = newWallet || Object.values(wallets)[0]
if (confirm(`Do you want to connect to wallet ${newWallet.info.name} with id ${newWallet.info.id}`)) {
console.log('newWallet', newWallet)
Expand All @@ -80,7 +80,7 @@ export default {
}
const scannerConnection = new BrowserWindowMessageConnection()
const stopScan = walletDetector(scannerConnection, handleWallets.bind(this))
const stopScan = walletDetector(scannerConnection, handleWallets)
})
},
async connect () {
Expand Down

0 comments on commit f60d1b8

Please sign in to comment.