Skip to content

Commit

Permalink
Chore: Update regex for iOS user-agent detection
Browse files Browse the repository at this point in the history
Removed `g` flag as it was not required.
We probably don’t need `i` flag for case insensitivity in case of iOS.
  • Loading branch information
vladimirsiljkovic committed Dec 10, 2018
1 parent e6f4a69 commit 7ec5562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.popupoverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
var visiblePopupsArray = [];
var transitionsupport = null;
var opentimer;
var iOS = /(iPad|iPhone|iPod)/g.test(navigator.userAgent);
var iOS = /(iPad|iPhone|iPod)/.test(navigator.userAgent);
var android = /(android)/i.test(navigator.userAgent);
var focusableElementsString = "a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]";

Expand Down

0 comments on commit 7ec5562

Please sign in to comment.