Skip to content

Commit

Permalink
Removed platform checking from Android detection
Browse files Browse the repository at this point in the history
commit_hash:b8bb827b2587e548efdcb8b6ab3bbda202ee7150
  • Loading branch information
cvgalagan committed Sep 13, 2024
1 parent 0e050a8 commit 65de086
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/utils/browser/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,10 @@ export const isSameSiteBrowser = memo((ctx: Window): boolean => {

export const isAndroid = memo((ctx: Window) => {
const userAgent = (getAgent(ctx) || '').toLowerCase();
const platform = getPlatform(ctx);

return (
stringIncludes(userAgent, 'android') &&
stringIncludes(userAgent, 'mobile') &&
/^android|linux armv/i.test(platform)
stringIncludes(userAgent, 'mobile')
);
});

Expand Down

0 comments on commit 65de086

Please sign in to comment.