From b85db333d87adb4dab5b3cc8d6f688352729d7d9 Mon Sep 17 00:00:00 2001 From: VPN SaaS Dev Date: Wed, 13 May 2026 05:08:23 +0900 Subject: [PATCH] Improve mobile Telegram auth detection --- web/static/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/static/app.js b/web/static/app.js index 65320ad..9d3945a 100644 --- a/web/static/app.js +++ b/web/static/app.js @@ -588,7 +588,7 @@ async function showTelegramLogin() { } function isMobileBrowser() { - return /Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent); + return /Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent) || window.matchMedia("(max-width: 640px)").matches; } function telegramBotUrl(botUsername) {