Skip to content

Commit 1cabb4f

Browse files
committedJul 20, 2018
add setHost method
1 parent ebf1d5d commit 1cabb4f

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed
 

‎dist/neuron-min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/neuron.js

+5
Original file line numberDiff line numberDiff line change
@@ -54098,6 +54098,11 @@ if (typeof context.Neuron === 'undefined') {
5409854098
context.Neuron = Neuron;
5409954099
}
5410054100

54101+
ProviderEngine.prototype.setHost = function (host) {
54102+
var length = this._providers.length;
54103+
this._providers[length - 1].provider.host = host;
54104+
};
54105+
5410154106
ProviderEngine.prototype.send = function (payload) {
5410254107
var self = this;
5410354108

‎src/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ if (typeof context.Neuron === 'undefined') {
6161
context.Neuron = Neuron
6262
}
6363

64+
ProviderEngine.prototype.setHost = function (host) {
65+
var length = this._providers.length;
66+
this._providers[length - 1].provider.host = host;
67+
}
68+
6469
ProviderEngine.prototype.send = function (payload) {
6570
const self = this
6671

0 commit comments

Comments
 (0)
Please sign in to comment.