diff options
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); + } + } +} |