Skip to content

feat: add helpers to detect iOS devices and touch - #3070

Merged
web-padawan merged 3 commits into
masterfrom
feat/ios-check
Nov 17, 2021
Merged

web-padawan merged 3 commits into
masterfrom
feat/ios-check

Conversation

@web-padawan

Copy link
Copy Markdown
Member

Description

Inspired by React Aria utils.

Type of change

  • Internal feature

* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/

export const isAndroid = /android/i.test(navigator.userAgent);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We don't really need /android/i because it turns out to always be capitalized.

@web-padawan web-padawan changed the title feat: improve platform checks for iOS devices feat: add helpers to detect iOS devices and touch Nov 17, 2021
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@web-padawan
web-padawan merged commit 53cd38f into master Nov 17, 2021
@web-padawan
web-padawan deleted the feat/ios-check branch November 17, 2021 13:55
web-padawan added a commit that referenced this pull request Nov 17, 2021
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
@vaadin-bot

Copy link
Copy Markdown
Collaborator

This ticket/PR has been released with platform 23.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants