diff --git a/retroshare-qml-app/src/main-app.qml b/retroshare-qml-app/src/main-app.qml index 497119d69..28047157f 100644 --- a/retroshare-qml-app/src/main-app.qml +++ b/retroshare-qml-app/src/main-app.qml @@ -239,7 +239,7 @@ ApplicationWindow function handleIntentUri(uriStr) { - console.log("handleIntentUri(uriStr)") + console.log("handleIntentUri(uriStr)", uriStr) if(!Array.isArray(uriStr.match(/:\/\/[a-zA-Z.-]*\//g))) { @@ -257,7 +257,10 @@ ApplicationWindow var uri = new UriJs.URI(uriStr) var hPath = uri.path() // no nesting ATM segmentCoded() - console.log(hPath) + console.log("hPath", hPath) + + var authority = uri.authority() + console.log("authority", authority) if(typeof uriHandlersRegister[hPath] == "function") { @@ -265,6 +268,13 @@ ApplicationWindow hPath, uriHandlersRegister[hPath]) uriHandlersRegister[hPath](uriStr) } + + else if (typeof uriHandlersRegister[authority] == "function" ) + { + console.log("handleIntentUri(uriStr)", "found handler for path", + authority, uriHandlersRegister[authority]) + uriHandlersRegister[authority](uriStr) + } } function certificateLinkHandler(uriStr)