mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
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:
commit
6ad7bd6be8
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