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: Add isIpadOs device check #114

Merged
merged 3 commits into from
Feb 8, 2024
Merged

feat: Add isIpadOs device check #114

merged 3 commits into from
Feb 8, 2024

Conversation

mchoun
Copy link
Contributor

@mchoun mchoun commented Jan 25, 2024

Adding a device check for iPadOS. This is related to a fix for [LI-30263].

@mchoun mchoun requested a review from a team as a code owner January 25, 2024 22:05
@mchoun mchoun changed the title Add isIpadOs device check feat: Add isIpadOs device check Feb 6, 2024
// eslint-disable-next-line compat/compat
window.navigator.maxTouchPoints = 5;
const bool = isIpadOs();
if (!bool) {
Copy link

Choose a reason for hiding this comment

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

Suggested change
if (!bool) {
if (bool !== true) {

I'd suggest explicitly equating to a boolean for these

@mchoun mchoun merged commit 0033c21 into krakenjs:main Feb 8, 2024
1 check failed
@mchoun mchoun deleted the li-30263 branch February 14, 2024 21:25
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.

5 participants