Skip to content
Permalink
Browse files
CB-12105 (browser) Properly detect Edge
  • Loading branch information
alsorokin committed Feb 28, 2017
1 parent 48e0e7f commit 4472603a42859084f1a151ebc3676421d33547a7
Showing 1 changed file with 3 additions and 1 deletion.
@@ -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) {

0 comments on commit 4472603

Please sign in to comment.