summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMilian Wolff <milian.wolff@kdab.com>2013-09-05 10:10:40 +0200
committerPierre Rossi <pierre.rossi@gmail.com>2013-11-01 13:57:51 +0100
commit04a84b7b47e3b9dcc0d6e5c55fda394b73e65bff (patch)
tree1e76f578ca8ecdb02601dcc9ea08db7bfccb6479 /examples
parent4e854a09ea219b46b56c1cfa0616b7ce0d500a59 (diff)
downloadqtwebchannel-04a84b7b47e3b9dcc0d6e5c55fda394b73e65bff.tar.gz
Allow IP's in base url.
Change-Id: I2e20aa13a598e65eafa9b9c145931a95e5f51a0e Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/hybridshell/qml/hybridshell/index.html2
-rw-r--r--examples/qmlapp/index.html2
-rw-r--r--examples/qtobject/qml/qtobject/index.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/hybridshell/qml/hybridshell/index.html b/examples/hybridshell/qml/hybridshell/index.html
index b93daab..23a765c 100644
--- a/examples/hybridshell/qml/hybridshell/index.html
+++ b/examples/hybridshell/qml/hybridshell/index.html
@@ -64,7 +64,7 @@
window.onload = function() {
out("Starting...");
- var baseUrl = (/[?&]webChannelBaseUrl=([A-Za-z0-9\-:/]+)/.exec(location.search)[1]);
+ var baseUrl = (/[?&]webChannelBaseUrl=([A-Za-z0-9\-:/\.]+)/.exec(location.search)[1]);
new QWebChannel(baseUrl, function(webChannel) {
window.navigator.webChannel = webChannel;
out("Ready");
diff --git a/examples/qmlapp/index.html b/examples/qmlapp/index.html
index 4f4593c..6601fa2 100644
--- a/examples/qmlapp/index.html
+++ b/examples/qmlapp/index.html
@@ -8,7 +8,7 @@
document.querySelector("#out").innerHTML += x + "<br/>";
}
window.onload = function() {
- var baseUrl = (/[?&]webChannelBaseUrl=([A-Za-z0-9\-:/]+)/.exec(location.search)[1]);
+ var baseUrl = (/[?&]webChannelBaseUrl=([A-Za-z0-9\-:/\.]+)/.exec(location.search)[1]);
new QWebChannel(baseUrl, function(c) {
c.subscribe(
"foobar",
diff --git a/examples/qtobject/qml/qtobject/index.html b/examples/qtobject/qml/qtobject/index.html
index a4a94ed..5e2b866 100644
--- a/examples/qtobject/qml/qtobject/index.html
+++ b/examples/qtobject/qml/qtobject/index.html
@@ -6,7 +6,7 @@
window.output = function(x) {
document.querySelector("#out").innerHTML += x + "\n";
}
- var baseUrl = (/[?&]webChannelBaseUrl=([A-Za-z0-9\-:/]+)/.exec(location.search)[1]);
+ var baseUrl = (/[?&]webChannelBaseUrl=([A-Za-z0-9\-:/\.]+)/.exec(location.search)[1]);
new QWebChannel(baseUrl, function(channel) {
setupQObjectWebChannel(channel, function() {
testObject1.sig1.connect(function(a, b, c) { output("1 sig1" + a + b + c); });