diff options
author | obscuren <geffobscura@gmail.com> | 2014-09-23 01:33:24 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-09-23 01:33:24 +0800 |
commit | 154ca03228a9d97a4b2319f525814a16f102430f (patch) | |
tree | a6e71cdafb18f011c2472d4792075173c132bee6 /mist/assets/ext/qml_messaging.js | |
parent | 7855a233a7ed4968d93fc76a74501c931574f6eb (diff) | |
parent | c7d666ad61a76e79867c9f7ae783a2cc44485dd0 (diff) | |
download | go-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.js | 13 |
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); + } + } +} |