]> _ Git - fluidbook-html5.git/commitdiff
try #7837 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Nov 2025 16:12:05 +0000 (17:12 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Nov 2025 16:12:05 +0000 (17:12 +0100)
js/libs/fluidbook/fluidbook.nav.js
js/libs/fluidbook/fluidbook.support.js

index 58e28ae3b7654ce1731eb9ce648cb9aeeac062d2..098ea52f38a6e4a3ffb80b87bd8c72e87d913669 100644 (file)
@@ -360,7 +360,7 @@ FluidbookNav.prototype = {
                 link = this.addLink(navType, 'nav-zoomin', '#', 'zoomin', 'zoom in', 'zoom in');
                 link = this.addLink(navType, 'nav-zoomout', '#', 'zoomout', 'zoom out', 'zoom out');
 
-            } else if (icon === 'fullscreen' && this.fluidbook.settings.fullscreen && this.fluidbook.support.fullscreen && !this.fluidbook.settings.phonegap) {
+            } else if (icon === 'fullscreen' && this.fluidbook.settings.fullscreen && this.fluidbook.support.fullscreen && !this.fluidbook.settings.phonegap && !this.fluidbook.support.webview) {
                 // __('switch between fullscreen and normal')
                 link = this.addLink(navType, 'nav-' + icon, '#', icon, 'full screen', 'switch between fullscreen and normal', 'F11');
             } else if (icon === 'sound' && this.fluidbook.sound.enabled) {
index cd743884eb28ae62c17ca4cbc32bd9153d77b2ee..f6311c35a1b96c2d0d2658994cfd9d46259519c8 100644 (file)
@@ -14,6 +14,7 @@ function FluidbookSupport(fluidbook) {
     this.iOS = Modernizr.ios;
     this.edge = Modernizr.edge;
     this.chromeBased = Modernizr.chrome || this.edge;
+    this.webview=navigator.userAgent.match(/wv/i);
 
     try {
         this.gpuInfos = this.getGPUInfos();