Skip to content

Commit

Permalink
Add Edge detection, fixes #38
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssegers committed Aug 28, 2015
1 parent b71be23 commit 7bfe41e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Agent.php
Expand Up @@ -29,6 +29,7 @@ class Agent extends Mobile_Detect {
*/
protected static $additionalBrowsers = array(
'Opera' => 'Opera|OPR',
'Edge' => 'Edge',
'Chrome' => 'Chrome',
'Firefox' => 'Firefox',
'Safari' => 'Safari',
Expand Down
1 change: 1 addition & 0 deletions tests/AgentTest.php
Expand Up @@ -23,6 +23,7 @@ class AgentTest extends PHPUnit_Framework_TestCase {
'Mozilla/5.0 (Windows; U; Windows NT 6.1; rv:2.2) Gecko/20110201' => 'Mozilla',
'Opera/9.80 (Windows NT 6.0) Presto/2.12.388 Version/12.14' => 'Opera',
'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36 OPR/27.0.1689.76' => 'Opera',
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12' => 'Edge'
);

private $robots = array(
Expand Down

0 comments on commit 7bfe41e

Please sign in to comment.