summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMilian Wolff <milian.wolff@kdab.com>2013-01-18 18:13:49 +0100
committerPierre Rossi <pierre.rossi@gmail.com>2013-11-01 13:57:43 +0100
commit70284d66f8bdbc39a9b53030a7624dfd5f7d15ba (patch)
tree2f9ff3265f0eece6b6adabbbd19858f1d9c02dfd /examples
parent6330c3f286d6c7286558e9a6324b0e7fc8c907eb (diff)
downloadqtwebchannel-70284d66f8bdbc39a9b53030a7624dfd5f7d15ba.tar.gz
Simplify the code a bit
Change-Id: Ic6c12fb6a51497129556b156483df59f8003c7a7 Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
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));
}
}