fixes... something, whatever it is @barisusakli

v1.18.x
psychobunny 11 years ago
parent f2bf9f9383
commit 7197f9b621

@ -38,7 +38,7 @@ function setupPluginSourceMapping(app) {
prefix = __dirname.split(path.sep).length - 1;
routes.forEach(function(route) {
mapping = path.sep + route.split(path.sep).slice(prefix).join(path.sep);
mapping = path.sep + route.split('/').slice(prefix).join('/');
app.get(mapping, function(req, res) {
res.type('text/javascript').sendfile(route);
});

Loading…
Cancel
Save