File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -426,11 +426,11 @@ public function parse(): ?array
426
426
$ version = $ osFromUserAgent ['version ' ];
427
427
}
428
428
429
- if ('Fire OS ' === $ osFromUserAgent [ ' name ' ] ) {
430
- $ majorVersion = (int ) (\explode ('. ' , $ version , 1 )[0 ] ?? '0 ' );
429
+ if ('Fire OS ' === $ name && ! empty ( $ osFromClientHints [ ' version ' ]) ) {
430
+ $ majorVersion = (int ) (\explode ('. ' , $ version , 1 )[0 ] ?? '0 ' );
431
431
432
- $ version = $ this ->fireOsVersionMapping [$ version ]
433
- ?? $ this ->fireOsVersionMapping [$ majorVersion ] ?? '' ;
432
+ $ version = $ this ->fireOsVersionMapping [$ version ]
433
+ ?? $ this ->fireOsVersionMapping [$ majorVersion ] ?? '' ;
434
434
}
435
435
}
436
436
Original file line number Diff line number Diff line change 5699
5699
version : " 18.2"
5700
5700
platform : " "
5701
5701
family : iOS
5702
+ -
5703
+ user_agent : Mozilla/5.0 (Linux; Android 11; AFTT) AppleWebKit/537.36 (KHTML, like Gecko) Silk/122.3.1 like Chrome/122.0.6261.160 Safari/537.36
5704
+ os :
5705
+ name : Fire OS
5706
+ short_name : FIR
5707
+ version : " 8"
5708
+ platform : " "
5709
+ family : Android
5710
+ headers :
5711
+ Sec-CH-UA-Platform : Android
You can’t perform that action at this time.
0 commit comments