Browse Source

Fixing Issue 2998 - Replacing `!!window.frameElement` with `window.parent !== window`

Inkbug 12 years ago
parent
commit
b0376a1aa6
  1. 2
      web/viewer.js

2
web/viewer.js

@ -886,7 +886,7 @@ var PDFView = { @@ -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,

Loading…
Cancel
Save