mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Fix bugzilla bug#804526, hiding fullscreen button when in an iframe
This commit is contained in:
parent
4dd0e02436
commit
6f17260d35
1 changed files with 5 additions and 0 deletions
|
@ -858,6 +858,11 @@ var PDFView = {
|
|||
var doc = document.documentElement;
|
||||
var support = doc.requestFullscreen || doc.mozRequestFullScreen ||
|
||||
doc.webkitRequestFullScreen;
|
||||
|
||||
// Disable fullscreen button if we're in an iframe
|
||||
if (!!window.frameElement)
|
||||
support = false;
|
||||
|
||||
Object.defineProperty(this, 'supportsFullScreen', { value: support,
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue