Fixing Issue 2998 - Replacing !!window.frameElement
with window.parent !== window
This commit is contained in:
parent
71a31b01f2
commit
b0376a1aa6
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user