Skip to content

Commit

Permalink
Detect non-Androids
Browse files Browse the repository at this point in the history
  • Loading branch information
muan committed Jul 15, 2020
1 parent abd5f13 commit f7d0748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emoji-detection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export function isEmojiSupported(): boolean {
const onWindows8 = /\bWindows NT 6.2\b/.test(navigator.userAgent)
const onWindows81 = /\bWindows NT 6.3\b/.test(navigator.userAgent)
const onFreeBSD = /\bFreeBSD\b/.test(navigator.userAgent)
const onLinux = /\bLinux\b/.test(navigator.userAgent)
const onLinux = /\bLinux\b/.test(navigator.userAgent) && !/\bAndroid\b/.test(navigator.userAgent)

return !(onWindows7 || onWindows8 || onWindows81 || onLinux || onFreeBSD)
}

0 comments on commit f7d0748

Please sign in to comment.