Browse Source

Merge pull request #3035 from Inkbug/issue2998

Fix for Issue 2998 – "Consider using `window.parent !== window` instead of `!!window.frameElement`"
Yury Delendik 12 years ago
parent
commit
6ad7bd6be8
  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