Improve mobile Telegram auth detection

This commit is contained in:
VPN SaaS Dev
2026-05-13 05:08:23 +09:00
parent 0eb503083a
commit b85db333d8

View File

@@ -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) {