We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b8a843 commit 2ba0998Copy full SHA for 2ba0998
src/lib/index.js
@@ -712,6 +712,11 @@ lib.isSafari = function() {
712
return IS_SAFARI_REGEX.test(window.navigator.userAgent);
713
};
714
715
+var IS_IOS_REGEX = /iPad|iPhone|iPod/;
716
+lib.isIOS = function() {
717
+ return IS_IOS_REGEX.test(window.navigator.userAgent);
718
+}
719
+
720
/**
721
* Duck typing to recognize a d3 selection, mostly for IE9's benefit
722
* because it doesn't handle instanceof like modern browsers
0 commit comments