Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #69 from daneren2005/master
Browse files Browse the repository at this point in the history
Add support for Edge detection
  • Loading branch information
BluSyn authored Oct 2, 2021
2 parents 470492e + 93d77c1 commit 8cdb9d6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions js/jquery.reject.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,17 @@ var _scrollSize = function() {
var r = {
name: m((a.exec(i) || [u, u])[1], b)
};

// Edge claims to be everything and edge last so we need to test for this after we get the wrong result
if(/edge\//.test(i)) {
r.name = 'edge';
}

r[r.name] = true;

if(r.edge) {
c = /(edge)(:|\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/;
}

if (!r.opera) {
r.version = (c.exec(i) || [x, x, x, x])[3];
Expand Down

0 comments on commit 8cdb9d6

Please sign in to comment.