Skip to content

Commit

Permalink
Update WebApp.MainButton in main.tsx to disable and hide
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-vahn committed Apr 29, 2024
1 parent ef682cb commit f609256
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import './index.css';

// Expand the Telegram Mini App to full screen
WebApp.expand();
WebApp.MainButton.disable();
WebApp.MainButton.hide();
// Initialize the Telegram Mini App SDK
WebApp.ready();
// Enable the closing confirmation
Expand Down

0 comments on commit f609256

Please sign in to comment.