We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42da226 commit f706a27Copy full SHA for f706a27
DeviceTypeDetectorLibrary.jslib
@@ -0,0 +1,5 @@
1
+mergeInto(LibraryManager.library, {
2
+ IsMobile: function () {
3
+ return ('ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0 || /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
4
+ }
5
+});
0 commit comments