mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Revert "Add a hack to prevent redirect of requests for /static/js/pad
to /static/js/pad.js
."
This reverts commit af4bd5ca65
.
This commit is contained in:
parent
45b7cafca4
commit
82652dffda
1 changed files with 1 additions and 2 deletions
|
@ -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$/, '')})
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue