aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist/assets/examples/info.html
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/mist/assets/examples/info.html')
-rw-r--r--cmd/mist/assets/examples/info.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/mist/assets/examples/info.html b/cmd/mist/assets/examples/info.html
index d8816b19f..2a405c280 100644
--- a/cmd/mist/assets/examples/info.html
+++ b/cmd/mist/assets/examples/info.html
@@ -71,6 +71,10 @@
document.querySelector("#gas_price").innerHTML = eth.gasPrice;
document.querySelector("#mining").innerHTML = eth.mining;
document.querySelector("#listening").innerHTML = eth.listening;
+ eth.watch('chain').changed(function() {
+ document.querySelector("#number").innerHTML = eth.number;
+ });
+
</script>
</html>