mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 23:52:58 +01:00
fixes for windows (flex) @julianlam
This commit is contained in:
@@ -38,7 +38,7 @@ function setupPluginSourceMapping(app) {
|
||||
prefix = __dirname.split(path.sep).length - 1;
|
||||
|
||||
routes.forEach(function(route) {
|
||||
mapping = '/' + route.split('/').slice(prefix).join('/');
|
||||
mapping = path.sep + route.split(path.sep).slice(prefix).join(path.sep);
|
||||
app.get(mapping, function(req, res) {
|
||||
res.type('text/javascript').sendfile(route);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user