From b0376a1aa6e49c9a1b8ba0d971bc9fc90851ce24 Mon Sep 17 00:00:00 2001 From: Inkbug Date: Tue, 2 Apr 2013 21:30:03 +0300 Subject: [PATCH] Fixing Issue 2998 - Replacing `!!window.frameElement` with `window.parent !== window` --- web/viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/viewer.js b/web/viewer.js index 4278692e1..2204870fd 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -886,7 +886,7 @@ var PDFView = { doc.webkitRequestFullScreen; // Disable fullscreen button if we're in an iframe - if (!!window.frameElement) + if (window.parent !== window) support = false; Object.defineProperty(this, 'supportsFullScreen', { value: support,