summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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); });