mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #7273 from Snuffleupagus/issue-7270
Prevent "Prefixed Fullscreen API is deprecated." warnings in the MOZCENTRAL version (issue 7270)
This commit is contained in:
commit
d20002b6b1
1 changed files with 4 additions and 0 deletions
|
@ -415,6 +415,9 @@ var PDFViewerApplication = {
|
|||
},
|
||||
|
||||
get supportsFullscreen() {
|
||||
//#if MOZCENTRAL
|
||||
// var support = document.fullscreenEnabled === true;
|
||||
//#else
|
||||
var doc = document.documentElement;
|
||||
var support = !!(doc.requestFullscreen || doc.mozRequestFullScreen ||
|
||||
doc.webkitRequestFullScreen || doc.msRequestFullscreen);
|
||||
|
@ -425,6 +428,7 @@ var PDFViewerApplication = {
|
|||
document.msFullscreenEnabled === false) {
|
||||
support = false;
|
||||
}
|
||||
//#endif
|
||||
if (support && pdfjsLib.PDFJS.disableFullscreen === true) {
|
||||
support = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue