mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-09 20:33:26 +00:00
Merge pull request #649 from embark-framework/bugfix/swarm-upload
Fix scope of the callback
This commit is contained in:
commit
e0a165e253
@ -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…
x
Reference in New Issue
Block a user