rename placeholder event: 'build-placeholder'

This commit is contained in:
Michael Bradley, Jr 2018-09-04 07:35:53 -05:00
parent 57b2c5c4e4
commit 7d65c2b0cd
3 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ class WebServer {
} }
listenToCommands() { listenToCommands() {
this.events.setCommandHandler('embark-building-placeholder', (cb) => this.buildPlaceholderPage(cb)); this.events.setCommandHandler('build-placeholder', (cb) => this.buildPlaceholderPage(cb));
this.events.setCommandHandler('open-browser', (cb) => this.openBrowser(cb)); this.events.setCommandHandler('open-browser', (cb) => this.openBrowser(cb));
this.events.setCommandHandler('start-webserver', (cb) => this.server.start(cb)); this.events.setCommandHandler('start-webserver', (cb) => this.server.start(cb));
this.events.setCommandHandler('stop-webserver', (cb) => this.server.stop(cb)); this.events.setCommandHandler('stop-webserver', (cb) => this.server.stop(cb));

View File

@ -34,7 +34,7 @@ class Server {
function createPlaceholderPage(next) { function createPlaceholderPage(next) {
if (self.isFirstStart) { if (self.isFirstStart) {
self.isFirstStart = false; self.isFirstStart = false;
return self.events.request('embark-building-placeholder', next); return self.events.request('build-placeholder', next);
} }
next(); next();
}, },

View File

@ -30,7 +30,7 @@ class Pipeline {
async.waterfall([ async.waterfall([
function createPlaceholderPage(next){ function createPlaceholderPage(next){
if (!self.isFirstBuild) { if (!self.isFirstBuild) {
return self.events.request('embark-building-placeholder', next); return self.events.request('build-placeholder', next);
} }
self.isFirstBuild = false; self.isFirstBuild = false;
next(); next();