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

This commit is contained in:
Inkbug 2013-04-02 21:30:03 +03:00
parent 71a31b01f2
commit b0376a1aa6

View File

@ -886,7 +886,7 @@ var PDFView = {
doc.webkitRequestFullScreen; doc.webkitRequestFullScreen;
// Disable fullscreen button if we're in an iframe // Disable fullscreen button if we're in an iframe
if (!!window.frameElement) if (window.parent !== window)
support = false; support = false;
Object.defineProperty(this, 'supportsFullScreen', { value: support, Object.defineProperty(this, 'supportsFullScreen', { value: support,