Skip to content

Commit

Permalink
Revert "Add Safari useragent detection."
Browse files Browse the repository at this point in the history
This reverts commit 723897c.
  • Loading branch information
paulojreis committed Apr 4, 2017
1 parent 5b6aba1 commit 0762050
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/ace/lib/useragent.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ if (typeof navigator != "object")
var os = (navigator.platform.match(/mac|win|linux/i) || ["other"])[0].toLowerCase();
var ua = navigator.userAgent;

var safariRegex = /version\/([\w\.]+).+?(mobile\s?safari|safari)/i;
var safariResult = ua.match(safariRegex);
var safariVersion = safariResult ? parseFloat(safariResult[1]) : 0;

// Is the user using a browser that identifies itself as Windows
exports.isWin = (os == "win");

Expand Down Expand Up @@ -99,8 +95,6 @@ exports.isWebKit = parseFloat(ua.split("WebKit/")[1]) || undefined;

exports.isChrome = parseFloat(ua.split(" Chrome/")[1]) || undefined;

exports.isSafari = safariVersion || undefined;

exports.isAIR = ua.indexOf("AdobeAIR") >= 0;

exports.isIPad = ua.indexOf("iPad") >= 0;
Expand Down

0 comments on commit 0762050

Please sign in to comment.