]> _ Git - fluidbook-html5.git/commitdiff
fix #3407 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 1 Oct 2020 15:40:25 +0000 (17:40 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 1 Oct 2020 15:40:25 +0000 (17:40 +0200)
js/libs/fluidbook/fluidbook.js

index 081a590abc107b732ab86906a579c959f18562a2..2f15295418bdc4e93a24f51fdcd4afff3970ae5c 100644 (file)
@@ -1001,6 +1001,11 @@ Fluidbook.prototype = {
             options = '';
         }
 
+        // fix #3407
+        if (target==='_popupiframe' && Modernizr.ios && url.search(/\.pdf$/) >= 0) {
+            target = '_blank';
+        }
+
         var locationdefault = 'yes';
         var mtarget = target;
         var replace = true;