diff --git a/web/src/hooks/useAuthSource.ts b/web/src/hooks/useAuthSource.ts index 8439642e..bc36bafb 100644 --- a/web/src/hooks/useAuthSource.ts +++ b/web/src/hooks/useAuthSource.ts @@ -78,11 +78,9 @@ export function useAuthSource(): { } // Check if we're likely in a Telegram environment before polling - // Hints: Telegram object exists (SDK loading), iframe, or Telegram URL params (in query or hash) + // Only use URL params (tgWebApp) as reliable indicator const hasTelegramHint = typeof window !== 'undefined' && ( - window.Telegram !== undefined || - window.self !== window.top || window.location.search.includes('tgWebApp') || window.location.hash.includes('tgWebApp') )