Skip to content

Commit f706a27

Browse files
committed
Create DeviceTypeDetectorLibrary.jslib
1 parent 42da226 commit f706a27

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

DeviceTypeDetectorLibrary.jslib

+5
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)