From 04a84b7b47e3b9dcc0d6e5c55fda394b73e65bff Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Thu, 5 Sep 2013 10:10:40 +0200 Subject: Allow IP's in base url. Change-Id: I2e20aa13a598e65eafa9b9c145931a95e5f51a0e Reviewed-by: Pierre Rossi --- examples/hybridshell/qml/hybridshell/index.html | 2 +- examples/qmlapp/index.html | 2 +- examples/qtobject/qml/qtobject/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') 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 + "
"; } 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); }); -- cgit v1.2.1