mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Replaces all preprocessor directives with PDFJSDev calls.
This commit is contained in:
parent
bf52ff156d
commit
0576c9c6c6
32 changed files with 1145 additions and 904 deletions
|
@ -27,7 +27,12 @@
|
|||
root.pdfjsWebApp, root.pdfjsWebPDFJS);
|
||||
}
|
||||
}(this, function (exports, preferences, app, pdfjsLib) {
|
||||
//#if FIREFOX || MOZCENTRAL
|
||||
if (typeof PDFJSDev === 'undefined' ||
|
||||
!PDFJSDev.test('FIREFOX || MOZCENTRAL')) {
|
||||
throw new Error('Module "pdfjs-web/firefoxcom" shall not be used outside ' +
|
||||
'FIREFOX and MOZCENTRAL builds.');
|
||||
}
|
||||
|
||||
var Preferences = preferences.Preferences;
|
||||
var PDFViewerApplication = app.PDFViewerApplication;
|
||||
|
||||
|
@ -288,5 +293,4 @@ document.mozL10n.setExternalLocalizerServices({
|
|||
|
||||
exports.DownloadManager = DownloadManager;
|
||||
exports.FirefoxCom = FirefoxCom;
|
||||
//#endif
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue