Fix scope of the callback

This commit is contained in:
Anthony Laibe 2018-07-27 13:08:00 +01:00
parent 444c504061
commit 72c4fe7624
1 changed files with 2 additions and 2 deletions

View File

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