summaryrefslogtreecommitdiff
path: root/examples/hybridshell/qml/hybridshell
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/hybridshell/qml/hybridshell
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/hybridshell/qml/hybridshell')
-rw-r--r--examples/hybridshell/qml/hybridshell/index.html2
1 files changed, 1 insertions, 1 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");