diff --git a/src/pages/login/forms/FormLogin.tsx b/src/pages/login/forms/FormLogin.tsx index 2b5cfc56..44c5a59a 100644 --- a/src/pages/login/forms/FormLogin.tsx +++ b/src/pages/login/forms/FormLogin.tsx @@ -21,6 +21,7 @@ export function FormLogin() { if (browser) { let { name } = browser; const { os } = browser; + let isiPad; if (window.isNative) { friendly_name = `Revolt Desktop on ${os}`; } else { @@ -28,8 +29,12 @@ export function FormLogin() { name = "safari"; } else if (name === "fxios") { name = "firefox"; + } else if (name === "crios") { + name = "chrome"; } - friendly_name = `${name} on ${os}`; + if (os === "Mac OS" && navigator.maxTouchPoints > 0) + isiPad = true; + friendly_name = `${name} on ${isiPad ? "iPadOS" : os}`; } } else { friendly_name = "Unknown Device"; diff --git a/src/pages/settings/panes/Sessions.tsx b/src/pages/settings/panes/Sessions.tsx index b48b0ae3..44215426 100644 --- a/src/pages/settings/panes/Sessions.tsx +++ b/src/pages/settings/panes/Sessions.tsx @@ -92,7 +92,7 @@ export function Sessions() { return ; case /mac.*os/i.test(name): return ; - case /ios/i.test(name): + case /i(Pad)os/i.test(name): return ; case /windows/i.test(name): return ;