summaryrefslogtreecommitdiff
path: root/examples/qmlapp/qmlapp.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qmlapp/qmlapp.qml')
-rw-r--r--examples/qmlapp/qmlapp.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/qmlapp/qmlapp.qml b/examples/qmlapp/qmlapp.qml
index 1c7f4e2..63ce985 100644
--- a/examples/qmlapp/qmlapp.qml
+++ b/examples/qmlapp/qmlapp.qml
@@ -6,11 +6,11 @@ Rectangle {
width: 1000
height: 360
WebChannel {
- id: webus
+ id: webChannel
useSecret: false
onRequest: {
var data = JSON.parse(request);
- response.send(JSON.stringify({b:'goodbye ' + data.a}));
+ response.send(JSON.stringify({b:'This is a response from QML'}));
}
}
@@ -19,7 +19,7 @@ Rectangle {
anchors.top: parent.top
settings.localContentCanAccessRemoteUrls: true
settings.developerExtrasEnabled: true
- url: "index.html?baseUrl=" + webus.baseUrl
+ url: "index.html?baseUrl=" + webChannel.baseUrl
}
Text {