-
Notifications
You must be signed in to change notification settings - Fork 13
[Bug][checkIPadOS] Safari в MacOS определяется как iPadOS #426
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Проблема
В браузере на WebKit параметр Navigator.standalone
В Safari на MacOS Navigator.standalone теперь тоже доступен ([macOS] Enable Navigator.standalone on macOS). Поэтому наличие этого св-ва уже не гарант того, что это iPadOS.
Lines 117 to 119 in 746860f
| if (macOS && notIOS && typeof (navigator as any).standalone === 'boolean') { | |
| return true; | |
| } |
Из-за этого, detectIOS() возвращает iOS как true в Safari на MacOS.
Задача
Необходимо иначе проверять на iPadOS.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
✅ Done