diff --git a/lib/modules/webserver/server.js b/lib/modules/webserver/server.js index 655cfb6a..1be158f4 100644 --- a/lib/modules/webserver/server.js +++ b/lib/modules/webserver/server.js @@ -100,13 +100,13 @@ class Server { const wss = expressWs.getWss('/'); self.events.on('outputDone', () => { - wss.clients.forEach(function (client) { + wss.clients.forEach(function(client) { client.send('outputDone'); }); }); self.events.on('outputError', () => { - wss.clients.forEach(function (client) { + wss.clients.forEach(function(client) { client.send('outputError'); }); }); @@ -116,13 +116,13 @@ class Server { self.app[apiCall.method].apply(self.app, [apiCall.endpoint, this.applyAPIFunction.bind(this, apiCall.cb)]); }); - this.app.get('/embark/*', function (req, res) { + this.app.get('/embark/*', function(req, res) { self.logger.trace('webserver> GET ' + req.path); res.sendFile(path.join(__dirname, '../../../embark-ui/build', 'index.html')); }); if (this.enableCatchAll === true) { - this.app.get('/*', function (req, res) { + this.app.get('/*', function(req, res) { self.logger.trace('webserver> GET ' + req.path); res.sendFile(path.join(fs.dappPath(self.dist, 'index.html'))); }); @@ -149,7 +149,7 @@ class Server { self.opened = true; self.events.request('open-browser', next); } - ], function (err) { + ], function(err) { if (err) { return callback(err); }