Merge pull request #3035 from Inkbug/issue2998

Fix for Issue 2998 – "Consider using `window.parent !== window` instead of `!!window.frameElement`"
This commit is contained in:
Yury Delendik 2013-04-03 07:35:33 -07:00
commit 6ad7bd6be8

View File

@ -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,