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:
Jonas Jenwald 2018-02-13 12:24:33 +01:00
parent ea3d8450d2
commit 9e0a31f662
4 changed files with 48 additions and 44 deletions

View file

@ -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';
}
/**