mirror of https://github.com/embarklabs/embark.git
Fix scope of the callback
This commit is contained in:
parent
35dc89895c
commit
df8ca76e28
|
@ -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