Permalink
Browse files
Replace arrow function to a basic one for compatibility
- Loading branch information...
Showing
with
2 additions
and
2 deletions.
-
+2
−2
motion.js
|
|
@@ -31,7 +31,7 @@ module.exports = function (app, http) { |
|
|
});
|
|
|
|
|
|
app.get('/doesFileExist/:filepath', function (req, res) {
|
|
|
- fs.access("public/" + req.params.filepath, fs.R_OK | fs.W_OK, (err) => {
|
|
|
+ fs.access("public/" + req.params.filepath, fs.R_OK | fs.W_OK, function(err) {
|
|
|
res.sendStatus(err ? 404 : 200);
|
|
|
})
|
|
|
});
|
|
|
@@ -58,4 +58,4 @@ module.exports = function (app, http) { |
|
|
});
|
|
|
});
|
|
|
});
|
|
|
-}
|
|
|
+}
|
0 comments on commit
e7cced4