summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/qtobject/qml/qtobject/main.qml5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/qtobject/qml/qtobject/main.qml b/examples/qtobject/qml/qtobject/main.qml
index bcef24d..05591a8 100644
--- a/examples/qtobject/qml/qtobject/main.qml
+++ b/examples/qtobject/qml/qtobject/main.qml
@@ -70,11 +70,8 @@ Rectangle {
id: webChannel
onExecute: {
var payload = JSON.parse(requestData);
- var ret = publisher.handleRequest(payload, webChannel);
- if (!ret) {
+ if (!publisher.handleRequest(payload, webChannel, response)) {
console.log("unhandled request: ", requestData);
- } else {
- response.send(JSON.stringify(ret));
}
}