]> _ Git - fluidbook-html5.git/commitdiff
#7839 @4
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 29 Dec 2025 16:42:09 +0000 (17:42 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 29 Dec 2025 16:42:09 +0000 (17:42 +0100)
js/libs/fluidbook/fluidbook.support.js

index f6311c35a1b96c2d0d2658994cfd9d46259519c8..11ce7f47f97bc1f49c377fc501f13f157b144b17 100644 (file)
@@ -14,7 +14,13 @@ function FluidbookSupport(fluidbook) {
     this.iOS = Modernizr.ios;
     this.edge = Modernizr.edge;
     this.chromeBased = Modernizr.chrome || this.edge;
-    this.webview=navigator.userAgent.match(/wv/i);
+    if(this.android) {
+        this.webview = navigator.userAgent.match(/wv/i);
+    }
+    if(this.iOS){
+        this.webview=!(navigator.userAgent.match(/Safari/i));
+    }
+
 
     try {
         this.gpuInfos = this.getGPUInfos();