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:
parent
59b281f7b3
commit
088c6e17e8
7 changed files with 49 additions and 35 deletions
3
make.js
3
make.js
|
@ -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']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue