Improve mobile Telegram auth detection
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user