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

fix(@toss/utils): When iOS Request Desktop Website is enabled, there is an issue with the userAgent. #504

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fe-dudu
Copy link

@fe-dudu fe-dudu commented Jul 8, 2024

Overview

https://forums.developer.apple.com/forums/thread/119186
When the "Request Desktop Website" option is enabled in iOS Safari, there is an issue with the userAgent being incorrect.

  • iOS Version: 17.5
  • Device Model: iPhone 15 Pro
  • Browser: Safari

Reproduction Steps

  1. Open Safari on iPhone 15 Pro.
  2. Navigate to any website (safari).
  3. Enable the "Request Desktop Website" option in Safari settings.
  4. Check the userAgent string using developer tools or JavaScript.

Expect

Mozilla/5.0 (iPhone; ...

Result

image

PR Checklist

  • I read and included theses actions below
  1. I have read the Contributing Guide
  2. I have written documents and tests, if needed.

Copy link

vercel bot commented Jul 8, 2024

@kinndohyun is attempting to deploy a commit to the Toss Team on Vercel.

A member of the Team first needs to authorize it.

@fe-dudu fe-dudu changed the title fix: When iOS Request Desktop Website is enabled, there is an issue with the userAgent. fix(@toss/utils): When iOS Request Desktop Website is enabled, there is an issue with the userAgent. Jul 8, 2024
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