use standard Web3 HttpProvider for http & fix jQuery conflict
This commit is contained in:
parent
7e129a9f26
commit
89eb890d94
File diff suppressed because one or more lines are too long
|
@ -104,4 +104,8 @@ StatusHttpProvider.prototype.isConnected = function () {
|
|||
}
|
||||
};
|
||||
|
||||
web3 = new Web3(new StatusHttpProvider("http://localhost:8545"));
|
||||
if (window.location.protocol == "https:") {
|
||||
web3 = new Web3(new StatusHttpProvider("http://localhost:8545"));
|
||||
} else {
|
||||
web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue