mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
fixed #1988
This commit is contained in:
@@ -41,7 +41,7 @@ function routeThemeScreenshots(app, themes) {
|
|||||||
(function(id, path) {
|
(function(id, path) {
|
||||||
fs.exists(path, function(exists) {
|
fs.exists(path, function(exists) {
|
||||||
if (exists) {
|
if (exists) {
|
||||||
app.get('/css/previews/' + id, function(req, res) {
|
app.get(relativePath + '/css/previews/' + id, function(req, res) {
|
||||||
res.sendfile(path);
|
res.sendfile(path);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user