mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Fixing Issue 2998 - Replacing !!window.frameElement
with window.parent !== window
This commit is contained in:
parent
71a31b01f2
commit
b0376a1aa6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue