diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-05 17:56:05 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-05 17:56:05 +0800 |
commit | dd45197bcd174e16adc3b738bf390cc3018a5a28 (patch) | |
tree | 13db37ed9ca5358c60f08cf4bd1a3ebb0ca0e22a /ethereal/assets/qml | |
parent | 2582d719b2a8a3facac4410dd9a2ddaf5000f038 (diff) | |
download | dexon-dd45197bcd174e16adc3b738bf390cc3018a5a28.tar dexon-dd45197bcd174e16adc3b738bf390cc3018a5a28.tar.gz dexon-dd45197bcd174e16adc3b738bf390cc3018a5a28.tar.bz2 dexon-dd45197bcd174e16adc3b738bf390cc3018a5a28.tar.lz dexon-dd45197bcd174e16adc3b738bf390cc3018a5a28.tar.xz dexon-dd45197bcd174e16adc3b738bf390cc3018a5a28.tar.zst dexon-dd45197bcd174e16adc3b738bf390cc3018a5a28.zip |
Added storage watch
Diffstat (limited to 'ethereal/assets/qml')
-rw-r--r-- | ethereal/assets/qml/webapp.qml | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/ethereal/assets/qml/webapp.qml b/ethereal/assets/qml/webapp.qml index 4bac12ef0..2267ab4bf 100644 --- a/ethereal/assets/qml/webapp.qml +++ b/ethereal/assets/qml/webapp.qml @@ -41,7 +41,7 @@ ApplicationWindow { experimental.preferences.developerExtrasEnabled: true experimental.userScripts: [ui.assetPath("ethereum.js")] experimental.onMessageReceived: { - //console.log("[onMessageReceived]: ", message.data) + console.log("[onMessageReceived]: ", message.data) // TODO move to messaging.js var data = JSON.parse(message.data) @@ -98,6 +98,15 @@ ApplicationWindow { window[key] = data.args[key]; } } + break; + case "debug": + console.log(data.args[0]); + break; + case "test": + console.log("in") + webview.experimental.evaluateJavaScript("hello()") + console.log("out") + break; } } catch(e) { console.log(data.call + ": " + e) @@ -124,7 +133,10 @@ ApplicationWindow { function onObjectChangeCb(stateObject) { postEvent("object:"+stateObject.address(), stateObject) } - function onStorageChangeCb() { + function onStorageChangeCb(storageObject) { + console.log("storage object cb", storageObject) + var ev = ["storage", storageObject.stateAddress, storageObject.address].join(":"); + postEvent(ev, [storageObject.address, storageObject.value]) } } |