Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Increase accuracy of Chromium Android detection #965

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

dj-stormtrooper
Copy link
Contributor

No description provided.

]) >= 2
)
if (isItChromium) {
return countTruthy([!('SharedWorker' in w), isAndroidNotificationError(), 'sinkId' in new window.Audio()]) >= 2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be !('sinkId' in new window.Audio()), because it's not available on Android.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@Finesse
Copy link
Member

Finesse commented Nov 6, 2023

Please download some old Chrome and Firefox version APKs and check the detector function on an Android Emulator or a real device. One good APK source is https://4pda.to/forum/.

@dj-stormtrooper
Copy link
Contributor Author

Please download some old Chrome and Firefox version APKs and check the detector function on an Android Emulator or a real device. One good APK source is https://4pda.to/forum/.

Tested on Firefox 67 and Chrome 91, works fine

@dj-stormtrooper dj-stormtrooper marked this pull request as ready for review November 8, 2023 13:44
@Finesse Finesse merged commit 349d56e into master Nov 13, 2023
3 checks passed
@Finesse Finesse deleted the feat/increase-accuracy-android-detection branch November 13, 2023 05:19
@Finesse
Copy link
Member

Finesse commented Nov 27, 2023

@dj-stormtrooper Could you please update the Android detection function in BotD too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants