fix ALL of the spaces
This commit is contained in:
parent
211321a914
commit
13160e622f
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue