mirror of https://github.com/embarklabs/embark.git
Fix scope of the callback
This commit is contained in:
parent
444c504061
commit
72c4fe7624
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue