Add missing self definition in error handling

parent b50b9912
......@@ -48,6 +48,7 @@ module.exports = function (urls) {
urlsFile = urls,
urls = JSON.parse(fs.readFileSync(urlsFile));
fs.watchFile(urlsFile, function () {
var self = this;
console.log("Reloading urls...");
fs.readFile(urlsFile, function (err, data) {
if (err) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment