Skip to content

Commit

Permalink
telegram fullscreen mode enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
unixvb committed Nov 18, 2024
1 parent 736ee6c commit 161b932
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ export const App = () => {
window.Telegram.WebApp.disableVerticalSwipes();

/* eslint-disable @typescript-eslint/ban-ts-comment */
// @ts-expect-error
window.Telegram.WebApp.requestFullscreen();
try {
// @ts-expect-error
window.Telegram.WebApp?.requestFullscreen();
} catch (e) {
console.log(e);
}

// @ts-expect-error
window.Telegram.WebApp.onEvent('fullscreenChanged', () => {
Expand Down

0 comments on commit 161b932

Please sign in to comment.