]> git.parisson.com Git - pdf.js.git/commitdiff
Fixes extension for Chrome
authorYury Delendik <ydelendik@mozilla.com>
Fri, 18 May 2012 01:04:24 +0000 (20:04 -0500)
committerYury Delendik <ydelendik@mozilla.com>
Fri, 18 May 2012 01:04:24 +0000 (20:04 -0500)
make.js

diff --git a/make.js b/make.js
index 88f7c69a073a2cf5c2013dfb933230a1ca44b3af..8236b49129afab762ef387e50d7851bdc0a65663 100755 (executable)
--- a/make.js
+++ b/make.js
@@ -490,6 +490,9 @@ target.chrome = function() {
   // Copy a standalone version of pdf.js inside the content directory
   cp(BUILD_TARGET, CHROME_BUILD_CONTENT_DIR + BUILD_DIR);
   cp('-R', EXTENSION_WEB_FILES, CHROME_BUILD_CONTENT_DIR + '/web');
+  // Replacing the l10n.js file with regular gh-pages one
+  rm(CHROME_BUILD_CONTENT_DIR + '/web/l10n.js');
+  cp('external/webL10n/l10n.js', CHROME_BUILD_CONTENT_DIR + '/web');
   cp('web/locale.properties', CHROME_BUILD_CONTENT_DIR + '/web');
   mv('-f', CHROME_BUILD_CONTENT_DIR + '/web/viewer-production.html',
     CHROME_BUILD_CONTENT_DIR + '/web/viewer.html');