mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 22:34:03 +00:00
fix(review): harden miniapp auth and finance flows
This commit is contained in:
@@ -23,5 +23,9 @@ declare global {
|
||||
}
|
||||
|
||||
export function getTelegramWebApp(): TelegramWebApp | undefined {
|
||||
if (typeof window === 'undefined') {
|
||||
return undefined
|
||||
}
|
||||
|
||||
return window.Telegram?.WebApp
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user