Skip to content

Commit f221595

Browse files
committed
Add support for detecting iOS 26
1 parent 4d9f1d8 commit f221595

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Device.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ function getOSAndName(): DeviceInfo {
1212
const {browser, os} = parser.getResult();
1313

1414
let osVersion = os.version;
15+
// Detection logic inspired by UAParser guide on iOS 26:
16+
// https://docs.uaparser.dev/guides/how-to-detect-ios-26-using-javascript.html
1517
if (browser.name === 'Mobile Safari' && browser.major === '26' && os.name === 'iOS' && os.version === '18.6') {
1618
osVersion = '26';
1719
}

0 commit comments

Comments
 (0)