aboutsummaryrefslogtreecommitdiffstats
path: root/mist/assets/ext/qml_messaging.js
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-23 01:33:24 +0800
committerobscuren <geffobscura@gmail.com>2014-09-23 01:33:24 +0800
commit154ca03228a9d97a4b2319f525814a16f102430f (patch)
treea6e71cdafb18f011c2472d4792075173c132bee6 /mist/assets/ext/qml_messaging.js
parent7855a233a7ed4968d93fc76a74501c931574f6eb (diff)
parentc7d666ad61a76e79867c9f7ae783a2cc44485dd0 (diff)
downloadgo-tangerine-154ca03228a9d97a4b2319f525814a16f102430f.tar.gz
go-tangerine-154ca03228a9d97a4b2319f525814a16f102430f.tar.zst
go-tangerine-154ca03228a9d97a4b2319f525814a16f102430f.zip
Merge branch 'release/0.6.5'v0.6.5
Diffstat (limited to 'mist/assets/ext/qml_messaging.js')
-rw-r--r--mist/assets/ext/qml_messaging.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/mist/assets/ext/qml_messaging.js b/mist/assets/ext/qml_messaging.js
new file mode 100644
index 000000000..8222c848d
--- /dev/null
+++ b/mist/assets/ext/qml_messaging.js
@@ -0,0 +1,13 @@
+function HandleMessage(data) {
+ var message;
+ try { message = JSON.parse(data) } catch(e) {};
+
+ if(message) {
+ switch(message.type) {
+ case "coinbase":
+ return eth.coinBase();
+ case "block":
+ return eth.blockByNumber(0);
+ }
+ }
+}