rename placeholder event: 'build-placeholder'
This commit is contained in:
parent
57b2c5c4e4
commit
7d65c2b0cd
|
@ -73,7 +73,7 @@ class WebServer {
|
|||
}
|
||||
|
||||
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('start-webserver', (cb) => this.server.start(cb));
|
||||
this.events.setCommandHandler('stop-webserver', (cb) => this.server.stop(cb));
|
||||
|
|
|
@ -34,7 +34,7 @@ class Server {
|
|||
function createPlaceholderPage(next) {
|
||||
if (self.isFirstStart) {
|
||||
self.isFirstStart = false;
|
||||
return self.events.request('embark-building-placeholder', next);
|
||||
return self.events.request('build-placeholder', next);
|
||||
}
|
||||
next();
|
||||
},
|
||||
|
|
|
@ -30,7 +30,7 @@ class Pipeline {
|
|||
async.waterfall([
|
||||
function createPlaceholderPage(next){
|
||||
if (!self.isFirstBuild) {
|
||||
return self.events.request('embark-building-placeholder', next);
|
||||
return self.events.request('build-placeholder', next);
|
||||
}
|
||||
self.isFirstBuild = false;
|
||||
next();
|
||||
|
|
Loading…
Reference in New Issue