diff options
Diffstat (limited to 'examples/qml/index.html')
-rw-r--r-- | examples/qml/index.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/qml/index.html b/examples/qml/index.html index cd20ac9..8b65dd2 100644 --- a/examples/qml/index.html +++ b/examples/qml/index.html @@ -5,8 +5,7 @@ <script type="text/javascript" src="qrc:///qwebchannel/qwebchannel.js"></script> <script type="text/javascript"> //BEGIN SETUP - var baseUrl = (/[?&]webChannelBaseUrl=([A-Za-z0-9\-:/\.]+)/.exec(location.search)[1]); - new QWebChannel(baseUrl, function(channel) { + new QWebChannel(navigator.qt, function(channel) { document.getElementById("send").onclick = function() { var input = document.getElementById("input"); var text = input.value; |