1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

changes to allow chrome extension to load

changes to remove inline scripts, update manifest version, fix make.js
so compatibility.js isn't included for chrome. Due to new Chrome
extension changes outlined at
http://developer.chrome.com/extensions/manifestVersion.html
This commit is contained in:
Michael Payne 2012-09-05 22:52:17 -07:00
parent 59b281f7b3
commit 088c6e17e8
7 changed files with 49 additions and 35 deletions

View file

@ -52,6 +52,7 @@ target.all = function() {
// Files that need to be included in every build.
var COMMON_WEB_FILES =
['web/viewer.css',
'web/inline.js',
'web/images',
'web/debugger.js'],
COMMON_WEB_FILES_PREPROCESS =
@ -581,7 +582,7 @@ target.chrome = function() {
defines: defines,
copy: [
[COMMON_WEB_FILES, CHROME_BUILD_CONTENT_DIR + '/web'],
[['extensions/chrome/*.json', 'extensions/chrome/*.html'],
[['extensions/chrome/*.json', 'extensions/chrome/*.html', 'extensions/chrome/*.js'],
CHROME_BUILD_DIR],
[BUILD_TARGET, CHROME_BUILD_CONTENT_DIR + BUILD_TARGET],
['external/webL10n/l10n.js', CHROME_BUILD_CONTENT_DIR + '/web']