Merge pull request #2001 from yurydelendik/add-jsm
Adds stub of the PdfJs.jsm
This commit is contained in:
commit
84d3d2a58f
7
extensions/firefox/content/PdfJs-stub.jsm
Normal file
7
extensions/firefox/content/PdfJs-stub.jsm
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
// Don't remove this file. FF15+ expects PdfJs module to be present at resource://pdf.js/PdfJs.jsm
|
||||||
|
// See https://mxr.mozilla.org/mozilla-central/source/browser/components/nsBrowserGlue.js
|
||||||
|
var EXPORTED_SYMBOLS = ["PdfJs"];
|
||||||
|
|
||||||
|
let PdfJs = {
|
||||||
|
init: function PdfJs_init() {}
|
||||||
|
};
|
2
make.js
2
make.js
@ -339,6 +339,8 @@ target.firefox = function() {
|
|||||||
mkdir('-p', FIREFOX_BUILD_CONTENT_DIR + BUILD_DIR);
|
mkdir('-p', FIREFOX_BUILD_CONTENT_DIR + BUILD_DIR);
|
||||||
mkdir('-p', FIREFOX_BUILD_CONTENT_DIR + '/web');
|
mkdir('-p', FIREFOX_BUILD_CONTENT_DIR + '/web');
|
||||||
|
|
||||||
|
cp(FIREFOX_CONTENT_DIR + 'PdfJs-stub.jsm', FIREFOX_BUILD_CONTENT_DIR + 'PdfJs.jsm');
|
||||||
|
|
||||||
// Copy extension files
|
// Copy extension files
|
||||||
cd('extensions/firefox');
|
cd('extensions/firefox');
|
||||||
cp('-R', FIREFOX_EXTENSION_FILES_TO_COPY, ROOT_DIR + FIREFOX_BUILD_DIR);
|
cp('-R', FIREFOX_EXTENSION_FILES_TO_COPY, ROOT_DIR + FIREFOX_BUILD_DIR);
|
||||||
|
Loading…
Reference in New Issue
Block a user