fix ALL of the spaces

This commit is contained in:
Jonathan Rainville 2018-10-03 16:49:25 -04:00 committed by Pascal Precht
parent 211321a914
commit 13160e622f
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 5 additions and 5 deletions

View File

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