From 82652dffdae5ab593780f12447745a984e1410b3 Mon Sep 17 00:00:00 2001 From: Chad Weider Date: Tue, 28 Feb 2012 19:00:27 -0800 Subject: [PATCH] Revert "Add a hack to prevent redirect of requests for `/static/js/pad` to `/static/js/pad.js`." This reverts commit af4bd5ca65637dc660a2ccda9f2454180f38f4d3. --- node/utils/Minify.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/node/utils/Minify.js b/node/utils/Minify.js index 98eb6f926..a49195a7b 100644 --- a/node/utils/Minify.js +++ b/node/utils/Minify.js @@ -35,10 +35,9 @@ var TAR_PATH = path.join(__dirname, 'tar.json'); var tar = JSON.parse(fs.readFileSync(TAR_PATH, 'utf8')); // Rewrite tar to include modules with no extensions and proper rooted paths. -// HACK: Also use non-extension name so redirects are not encountered. exports.tar = {}; for (var key in tar) { - exports.tar['/' + key.replace(/\.js$/, '')] = + exports.tar['/' + key] = tar[key].map(function (p) {return '/' + p}).concat( tar[key].map(function (p) {return '/' + p.replace(/\.js$/, '')}) );