mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-30 14:52:59 +00:00
warning when provider is not set
This commit is contained in:
parent
f7c9c8928e
commit
f9ca054314
2 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,6 @@
|
|||
<script type="text/javascript" src="qt.js"></script>
|
||||
<script type="text/javascript" src="http.js"></script>
|
||||
<script type="text/javascript">
|
||||
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8080'));
|
||||
function registerName() {
|
||||
var name = document.querySelector("#name").value;
|
||||
name = web3.fromAscii(name);
|
||||
|
|
|
|||
1
main.js
1
main.js
|
|
@ -391,6 +391,7 @@
|
|||
if(this.provider !== undefined) {
|
||||
this.provider.send(data);
|
||||
} else {
|
||||
console.warn("provider is not set");
|
||||
this.queued.push(data);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue