mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 01:35:43 +02:00
Ensure that the locale
viewer option is never defined in the (various) extension builds (PR 9493 follow-up)
This commit is contained in:
parent
275834ae66
commit
c8384061cf
2 changed files with 14 additions and 10 deletions
|
@ -319,11 +319,9 @@ let PDFViewerApplication = {
|
|||
let enabled = hashParams['pdfbug'].split(',');
|
||||
waitOn.push(loadAndEnablePDFBug(enabled));
|
||||
}
|
||||
// Locale can be changed only when special debugging flags is present in
|
||||
// the hash section of the URL, or development version of viewer is used.
|
||||
// It is not possible to change locale for Firefox extension builds.
|
||||
if ((typeof PDFJSDev === 'undefined' || !PDFJSDev.test('PRODUCTION') ||
|
||||
!PDFJSDev.test('FIREFOX || MOZCENTRAL')) && 'locale' in hashParams) {
|
||||
// It is not possible to change locale for the (various) extension builds.
|
||||
if ((typeof PDFJSDev === 'undefined' ||
|
||||
PDFJSDev.test('!PRODUCTION || GENERIC')) && 'locale' in hashParams) {
|
||||
AppOptions.set('locale', hashParams['locale']);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue