diff --git a/js/server/app.js b/js/server/app.js index 66b9c48f..6cbc4c9c 100644 --- a/js/server/app.js +++ b/js/server/app.js @@ -14,7 +14,8 @@ module.exports = function(config) { const elm = require('./worker')(config); const dashboard = require('./dashboard')(app, elm, expressWs); - const watcher = require('./watcher')(app, elm); + + require('./watcher')(app, elm); require('./control')(app, elm, expressWs); app.get('/file', function(req, res) { diff --git a/js/server/watcher.js b/js/server/watcher.js index c3fad4dd..ded50d81 100644 --- a/js/server/watcher.js +++ b/js/server/watcher.js @@ -1,4 +1,4 @@ -var watch = require("node-watch"); +var watch = require('node-watch'); module.exports = function(app, elmWorker) { const pack = require(process.cwd() + '/elm-package.json');