Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Aug 22, 2024
1 parent 954f0ae commit 28c29ed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function App() {
const cartridgeConnector = connectors[0]

useEffect(() => {
window.Telegram.WebApp.SettingsButton.isVisible = true
WebApp.SettingsButton.isVisible = true
})

return (
Expand Down Expand Up @@ -58,27 +58,27 @@ function App() {
open link
</button>
<button onClick={() => {
window.Telegram.WebApp.BiometricManager.init(() => {
window.Telegram.WebApp.showConfirm('give data', () => window.Telegram.WebApp.BiometricManager.requestAccess({
WebApp.BiometricManager.init(() => {
WebApp.showConfirm('give data', () => WebApp.BiometricManager.requestAccess({
reason: 'we need your biometric data',
}, () => {
WebApp.showPopup({
message: 'thank'
})
}))
})
window.Telegram.WebApp.showConfirm('give data', () => window.Telegram.WebApp.BiometricManager.requestAccess({
WebApp.showConfirm('give data', () => WebApp.BiometricManager.requestAccess({
reason: 'we need your biometric data',
}, () => {
window.Telegram.WebApp.showPopup({
WebApp.showPopup({
message: 'thank'
})
}))
}}>
ok
</button>
<div className="card">
<button onClick={() => window.Telegram.WebApp.BiometricManager.openSettings()}>
<button onClick={() => WebApp.BiometricManager.openSettings()}>
Bio settings
</button>
</div>
Expand Down

0 comments on commit 28c29ed

Please sign in to comment.