Skip to content

Commit ee22896

Browse files
committed
refactor(server): keep browser token matching concise
1 parent f8a2c61 commit ee22896

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎apps/server/src/auth/utils.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ function inferBrowser(userAgent: string | undefined): string | undefined {
128128
return undefined;
129129
}
130130
const normalized = userAgent.toLowerCase();
131-
// Mobile builds name themselves with their own tokens (EdgA, EdgiOS, OPiOS,
132-
// FxiOS) and still carry Chrome/ or Safari/, so check those first.
133131
if (/edg(?:e|a|ios)?\//.test(normalized)) return "Edge";
134132
if (/opr\/|opios\//.test(normalized)) return "Opera";
135133
if (/firefox\/|fxios\//.test(normalized)) return "Firefox";

0 commit comments

Comments
 (0)