Skip to content

[Bug][checkIPadOS] Safari в MacOS определяется как iPadOS #426

@inomdzhon

Description

@inomdzhon

Проблема

В браузере на WebKit параметр Navigator.standalone

В Safari на MacOS Navigator.standalone теперь тоже доступен ([macOS] Enable Navigator.standalone on macOS). Поэтому наличие этого св-ва уже не гарант того, что это iPadOS.

vkjs/src/IOSDetections.ts

Lines 117 to 119 in 746860f

if (macOS && notIOS && typeof (navigator as any).standalone === 'boolean') {
return true;
}

Из-за этого, detectIOS() возвращает iOS как true в Safari на MacOS.

Задача

Необходимо иначе проверять на iPadOS.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions