slash icon indicating copy to clipboard operation
slash copied to clipboard

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

Open fe-dudu opened this issue 1 year ago • 1 comments

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

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

fe-dudu avatar Jul 08 '24 13:07 fe-dudu

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

A member of the Team first needs to authorize it.

vercel[bot] avatar Jul 08 '24 13:07 vercel[bot]