mirror of
https://github.com/imputnet/cobalt.git
synced 2025-12-16 13:08:52 +00:00
web: update ios safari version regex
Some checks are pending
Some checks are pending
since ipados pretends to be macos, there's no "iphone os" in its user agent. this (hopefully) fixes remuxing/transcoding compatibility with old ipados versions
This commit is contained in:
@@ -38,7 +38,7 @@ if (browser) {
|
||||
const iPhone = ua.includes("iphone os");
|
||||
const iPad = !iPhone && ua.includes("mac os") && navigator.maxTouchPoints > 0;
|
||||
|
||||
const iosVersion = Number(ua.match(/iphone os (\d+)_/)?.[1]);
|
||||
const iosVersion = Number(ua.match(/version\/(\d+)/)?.[1]);
|
||||
const modernIOS = iPhone && iosVersion >= 18;
|
||||
|
||||
const iOS = iPhone || iPad;
|
||||
|
||||
Reference in New Issue
Block a user