mirror of
https://github.com/status-im/status-mobile.git
synced 2025-02-25 14:57:05 +00:00
use standard Web3 HttpProvider for http & fix jQuery conflict
This commit is contained in:
parent
7e129a9f26
commit
89eb890d94
6
resources/jquery-3.1.1.min.js
vendored
6
resources/jquery-3.1.1.min.js
vendored
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…
x
Reference in New Issue
Block a user