Fix scope of the callback

This commit is contained in:
Anthony Laibe 2018-07-27 13:08:00 +01:00 committed by Iuri Matias
parent 35dc89895c
commit df8ca76e28
1 changed files with 2 additions and 2 deletions

View File

@ -93,9 +93,9 @@ class Swarm {
return storageProcessesLauncher.launchProcess('swarm', callback);
}
registerUploadCommand(cb) {
registerUploadCommand() {
const self = this;
this.embark.registerUploadCommand('swarm', () => {
this.embark.registerUploadCommand('swarm', (cb) => {
let upload_swarm = new UploadSwarm({
buildDir: self.buildDir || 'dist/',
storageConfig: self.storageConfig,