Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengill committed Mar 2, 2017
2 parents a4e19e9 + 4472603 commit 160da28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/browser/DeviceProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ function getBrowserInfo(getModel) {
var returnVal = '';
var offset;

if ((offset = userAgent.indexOf('Chrome')) !== -1) {
if ((offset = userAgent.indexOf('Edge')) !== -1) {
returnVal = (getModel) ? 'Edge' : userAgent.substring(offset + 5);
} else if ((offset = userAgent.indexOf('Chrome')) !== -1) {
returnVal = (getModel) ? 'Chrome' : userAgent.substring(offset + 7);
} else if ((offset = userAgent.indexOf('Safari')) !== -1) {
if (getModel) {
Expand Down

0 comments on commit 160da28

Please sign in to comment.