Skip to content

Conversation

milksense
Copy link
Contributor

@milksense milksense commented Jul 6, 2025

fix@2x

Copy link

changeset-bot bot commented Jul 6, 2025

⚠️ No Changeset found

Latest commit: e1a2c46

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

github-actions bot commented Jul 6, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
shadcn-svelte ✅ Ready (View Log) Visit Preview e1a2c46

@milksense
Copy link
Contributor Author

@huntabyte :)

@huntabyte
Copy link
Owner

Hm the way it is right now works for me for some reason? Maybe we should use a case insensitive regex?

@milksense
Copy link
Contributor Author

milksense commented Jul 7, 2025

navigator.platform is deprecated.

But alternatively navigator.userAgentData still not implemented in Safari Version 26.0 (21622.1.16.11.2)

Older browsers that don't support navigator.userAgentData still have a good fallback solution available.

"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

@milksense
Copy link
Contributor Author

image_July-23

@huntabyte

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.

2 participants