Skip to content

Commit 3d8da4a

Browse files
authored
Merge pull request #71 from gejobj/master
Firefox iOS check
2 parents f8655ae + 9403281 commit 3d8da4a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/Browser.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,6 +1288,18 @@ protected function checkBrowserFirefox()
12881288
$this->setBrowser(self::BROWSER_FIREFOX);
12891289
return true;
12901290
}
1291+
} elseif ( preg_match("/FxiOS[\/ \(]([^ ;\)]+)/i", $this->_agent, $matches) ) {
1292+
$this->setVersion($matches[1]);
1293+
$this->setBrowser(self::BROWSER_FIREFOX);
1294+
//Firefox on Android
1295+
if (stripos($this->_agent, 'Android') !== false) {
1296+
if (stripos($this->_agent, 'Mobile') !== false) {
1297+
$this->setMobile(true);
1298+
} else {
1299+
$this->setTablet(true);
1300+
}
1301+
}
1302+
return true;
12911303
}
12921304
return false;
12931305
}

0 commit comments

Comments
 (0)