mirror of https://github.com/embarklabs/embark.git
Merge in remote
This commit is contained in:
commit
421f9a4096
|
@ -137,6 +137,9 @@
|
|||
"successfully uploaded to swarm": "successfully uploaded to swarm",
|
||||
"Cannot upload: {{plaform}} node is not running on {{protocol}}://{{host}}{{port}}.": "Cannot upload: {{platform}} node is not running on {{protocol}}://{{host}}{{port}}.",
|
||||
"no contracts found": "no contracts found",
|
||||
"IPFS node is offline": "IPFS node is offline",
|
||||
"IPFS node detected": "IPFS node detected",
|
||||
"Webserver is offline": "Webserver is offline",
|
||||
"DApp path length is too long: \"": "DApp path length is too long: \"",
|
||||
"This is known to cause issues with some applications, please consider reducing your DApp path's length to 66 characters or less.": "This is known to cause issues with some applications, please consider reducing your DApp path's length to 66 characters or less.",
|
||||
"For more info go to http://embark.status.im": "For more info go to http://embark.status.im",
|
||||
|
|
|
@ -10,10 +10,6 @@ __embarkSwarm.setProvider = function (options) {
|
|||
this._connectUrl = `${protocol}://${options.host}${port}`;
|
||||
this._connectError = new Error(`Cannot connect to Swarm node on ${this._connectUrl}`);
|
||||
|
||||
this._config = options;
|
||||
this._connectUrl = `${protocol}://${options.host}${port}`;
|
||||
this._connectError = new Error(`Cannot connect to Swarm node on ${this._connectUrl}`);
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
try {
|
||||
if (!web3.bzz.currentProvider && !options.useOnlyGivenProvider) {
|
||||
|
@ -22,9 +18,6 @@ __embarkSwarm.setProvider = function (options) {
|
|||
else if(options.useOnlyGivenProvider && web3.bzz.givenProvider !== null){
|
||||
web3.bzz.setProvider(web3.bzz.givenProvider);
|
||||
}
|
||||
else if(options.useOnlyGivenProvider && web3.bzz.givenProvider !== null){
|
||||
web3.bzz.setProvider(web3.bzz.givenProvider);
|
||||
}
|
||||
resolve(this);
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
|
|
|
@ -12,6 +12,8 @@ class StorageProcessesLauncher {
|
|||
this.blockchainConfig = options.blockchainConfig;
|
||||
this.processes = {};
|
||||
|
||||
this.cors = this.buildCors();
|
||||
|
||||
this.events.on('exit', () => {
|
||||
Object.keys(this.processes).forEach(processName => {
|
||||
this.processes[processName].send('exit');
|
||||
|
|
Loading…
Reference in New Issue