aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mist/assets/qml/browser.qml5
-rw-r--r--cmd/mist/assets/qml/views/whisper.qml2
2 files changed, 4 insertions, 3 deletions
diff --git a/cmd/mist/assets/qml/browser.qml b/cmd/mist/assets/qml/browser.qml
index 867260507..1425f60c0 100644
--- a/cmd/mist/assets/qml/browser.qml
+++ b/cmd/mist/assets/qml/browser.qml
@@ -59,7 +59,8 @@ Rectangle {
}
Component.onCompleted: {
- webview.url = "http://etherian.io"
+ //webview.url = "http://etherian.io"
+ webview.url = "file:///Users/jeffrey/test.html"
}
signal messages(var messages, int id);
@@ -350,7 +351,7 @@ Rectangle {
for(var i = 0; i < fields.length; i++) {
params[fields[i]] = params[fields[i]] || "";
}
- if(typeof params.payload === "object") { params.payload = params.payload.join(""); }
+ if(typeof params.payload !== "object") { params.payload = [params.payload]; } //params.payload = params.payload.join(""); }
params.topics = params.topics || [];
params.priority = params.priority || 1000;
params.ttl = params.ttl || 100;
diff --git a/cmd/mist/assets/qml/views/whisper.qml b/cmd/mist/assets/qml/views/whisper.qml
index ffe391666..56c4f1b07 100644
--- a/cmd/mist/assets/qml/views/whisper.qml
+++ b/cmd/mist/assets/qml/views/whisper.qml
@@ -52,7 +52,7 @@ Rectangle {
Button {
text: "Send"
onClicked: {
- shh.post(eth.toHex(data.text), "", identity, topics.text.split(","), 500, 50)
+ shh.post([eth.toHex(data.text)], "", identity, topics.text.split(","), 500, 50)
}
}
}