Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
prevetal committed Oct 17, 2024
1 parent f88193a commit 4aac404
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
}]
}
}]).then(result => {
console.log(result)
alert(result)
}).catch(error => {
console.log(error)
})
Expand Down
5 changes: 4 additions & 1 deletion js/jetPack.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@

// Resolve the promise
resolve(true)
} else if (data.type === 'tx') {
// Resolve the promise
resolve(data.hash)
} else if (data.type === 'error') {
// Reject promise
reject(`Error received: ${data.message}`)
Expand Down Expand Up @@ -143,7 +146,7 @@

// Construct Telegram bot URL
const telegramUrl = `https://t.me/${BOT_USERNAME}/dev_JetWallet?startapp=${encodedData}`
// const telegramUrl = `http://localhost:8081/auth?tgWebAppStartParam=${encodedData}`
// const telegramUrl = `http://localhost:8080/auth?tgWebAppStartParam=${encodedData}`

// Try to open the URL
try {
Expand Down

0 comments on commit 4aac404

Please sign in to comment.