Merge pull request #649 from embark-framework/bugfix/swarm-upload

Fix scope of the callback
This commit is contained in:
Iuri Matias 2018-07-27 11:02:02 -04:00 committed by GitHub
commit e0a165e253
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,