Fix bugzilla bug#804526, hiding fullscreen button when in an iframe
This commit is contained in:
parent
4dd0e02436
commit
6f17260d35
@ -858,6 +858,11 @@ var PDFView = {
|
|||||||
var doc = document.documentElement;
|
var doc = document.documentElement;
|
||||||
var support = doc.requestFullscreen || doc.mozRequestFullScreen ||
|
var support = doc.requestFullscreen || doc.mozRequestFullScreen ||
|
||||||
doc.webkitRequestFullScreen;
|
doc.webkitRequestFullScreen;
|
||||||
|
|
||||||
|
// Disable fullscreen button if we're in an iframe
|
||||||
|
if (!!window.frameElement)
|
||||||
|
support = false;
|
||||||
|
|
||||||
Object.defineProperty(this, 'supportsFullScreen', { value: support,
|
Object.defineProperty(this, 'supportsFullScreen', { value: support,
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user