-
-
Notifications
You must be signed in to change notification settings - Fork 456
fix: hook use-is-mac #2210
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
base: main
Are you sure you want to change the base?
fix: hook use-is-mac #2210
Conversation
|
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
@huntabyte :) |
Hm the way it is right now works for me for some reason? Maybe we should use a case insensitive regex? |
But alternatively Older browsers that don't support "userAgentData" in navigator
? navigator.userAgentData?.platform.toLowerCase().includes("mac") // or navigator.userAgentData?.platform.includes("macOS") but not stable value yet
: navigator?.platform.toLowerCase().includes("mac") // or navigator?.platform.includes("Mac") stable but deprecated |
Uh oh!
There was an error while loading. Please reload this page.