mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Move viewer specific compatibility options from src/shared/compatibility.js
and into a separate file
Unfortunately, as far as I can tell, we still need the ability to adjust certain viewer options depending on the browser environment in PDF.js version `2.0`. However, we should be able to separate this from the general compatibility code in the `src/shared/compatibility.js` file.
This commit is contained in:
parent
ea3d8450d2
commit
9e0a31f662
4 changed files with 48 additions and 44 deletions
|
@ -65,14 +65,6 @@ let NullL10n = {
|
|||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* Disables fullscreen support, and by extension Presentation Mode,
|
||||
* in browsers which support the fullscreen API.
|
||||
* @var {boolean}
|
||||
*/
|
||||
PDFJS.disableFullscreen = (PDFJS.disableFullscreen === undefined ?
|
||||
false : PDFJS.disableFullscreen);
|
||||
|
||||
/**
|
||||
* Enables CSS only zooming.
|
||||
* @var {boolean}
|
||||
|
@ -110,7 +102,7 @@ if (typeof PDFJSDev === 'undefined' ||
|
|||
*/
|
||||
PDFJS.locale =
|
||||
(PDFJS.locale === undefined && typeof navigator !== 'undefined' ?
|
||||
navigator.language : PDFJS.locale);
|
||||
navigator.language : PDFJS.locale) || 'en-US';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue