Skip to content

Commit 5ade505

Browse files
committed
Merge pull request #30 from sisidovski/add_firefox_ios
Support Firefox for iOS
2 parents ca47775 + 3ae23da commit 5ade505

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

src/AgentCategory/Browser/SafariChrome.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@ public static function challenge($ua, &$result)
2828
}
2929
}
3030

31+
$fpos = strpos($ua, 'FxiOS');
32+
33+
if ($fpos > -1) {
34+
if (preg_match('/FxiOS\/([.0-9]+)/', $ua, $matches)) {
35+
$version = $matches[1];
36+
37+
static::updateMap($result, DataSet::get('Firefox'));
38+
static::updateVersion($result, $version);
39+
40+
return true;
41+
}
42+
}
43+
3144
$cpos = strpos($ua, 'Chrome');
3245

3346
if ($cpos === false) {

woothee

0 commit comments

Comments
 (0)