]> _ Git - fluidbook-html5.git/commitdiff
try #2599 @0:01
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 21 Feb 2019 13:56:03 +0000 (14:56 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 21 Feb 2019 13:56:03 +0000 (14:56 +0100)
js/libs/modernizr/tests.js

index 69d64ed59fd27ddcc343936822e0bef802c8e620..a28c972541a01cbea6a86f53f687e0e52cf70084 100644 (file)
@@ -1,5 +1,9 @@
 Modernizr.addTest('ftouch', function () {
-    return Modernizr.touchevents || navigator.maxTouchPoints > 0;
+    try {
+        return Modernizr.touchevents || navigator.maxTouchPoints > 0;
+    } catch (e) {
+        return false;
+    }
 });
 
 Modernizr.addTest('ipad', function () {