summaryrefslogtreecommitdiff
path: root/examples/webchannel/standalone/index.html
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2017-08-28 16:15:18 +0200
committerKai Koehne <kai.koehne@qt.io>2017-09-08 15:19:48 +0000
commit13294ce605751babad0687e63c033436d129e3d2 (patch)
tree5f4944c848b228a582919204f60d9ae3a38d3a54 /examples/webchannel/standalone/index.html
parent7f992db892686fe4c260b0362d13b957af908692 (diff)
downloadqtwebchannel-13294ce605751babad0687e63c033436d129e3d2.tar.gz
Split up classes in standalone example
Change-Id: Ie58e8914415f42b0b4d52106b343e152ba9e7565 Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Diffstat (limited to 'examples/webchannel/standalone/index.html')
-rw-r--r--examples/webchannel/standalone/index.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/webchannel/standalone/index.html b/examples/webchannel/standalone/index.html
index b5a9a49..a41bbbe 100644
--- a/examples/webchannel/standalone/index.html
+++ b/examples/webchannel/standalone/index.html
@@ -31,8 +31,8 @@
{
output("WebSocket connected, setting up QWebChannel.");
new QWebChannel(socket, function(channel) {
- // make dialog object accessible globally
- window.dialog = channel.objects.dialog;
+ // make core object accessible globally
+ window.core = channel.objects.core;
document.getElementById("send").onclick = function() {
var input = document.getElementById("input");
@@ -43,14 +43,14 @@
output("Sent message: " + text);
input.value = "";
- dialog.receiveText(text);
+ core.receiveText(text);
}
- dialog.sendText.connect(function(message) {
+ core.sendText.connect(function(message) {
output("Received message: " + message);
});
- dialog.receiveText("Client connected, ready to send/receive messages!");
+ core.receiveText("Client connected, ready to send/receive messages!");
output("Connected to WebChannel, ready to send/receive messages!");
});
}