You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2015/09/04 07:08:19 UTC

ios commit: CB-9485 Use absoluteString method of NSURL

Repository: cordova-ios
Updated Branches:
  refs/heads/master 70cb400bb -> 99f5a3361


CB-9485 Use absoluteString method of NSURL


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/99f5a336
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/99f5a336
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/99f5a336

Branch: refs/heads/master
Commit: 99f5a3361080786da8653bdda5fbf1b98c1fede3
Parents: 70cb400
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Thu Sep 3 18:04:12 2015 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Thu Sep 3 18:04:12 2015 -0700

----------------------------------------------------------------------
 .../Classes/Private/Plugins/CDVHandleOpenURL/CDVHandleOpenURL.m    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/99f5a336/CordovaLib/Classes/Private/Plugins/CDVHandleOpenURL/CDVHandleOpenURL.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/Private/Plugins/CDVHandleOpenURL/CDVHandleOpenURL.m b/CordovaLib/Classes/Private/Plugins/CDVHandleOpenURL/CDVHandleOpenURL.m
index 60fbf8e..72199b9 100644
--- a/CordovaLib/Classes/Private/Plugins/CDVHandleOpenURL/CDVHandleOpenURL.m
+++ b/CordovaLib/Classes/Private/Plugins/CDVHandleOpenURL/CDVHandleOpenURL.m
@@ -59,7 +59,7 @@
 
     dispatch_block_t handleOpenUrl = ^(void) {
         // calls into javascript global function 'handleOpenURL'
-        NSString* jsString = [NSString stringWithFormat:@"document.addEventListener('deviceready',function(){if (typeof handleOpenURL === 'function') { handleOpenURL(\"%@\");}});", url];
+        NSString* jsString = [NSString stringWithFormat:@"document.addEventListener('deviceready',function(){if (typeof handleOpenURL === 'function') { handleOpenURL(\"%@\");}});", url.absoluteString];
 
         [weakSelf.webViewEngine evaluateJavaScript:jsString completionHandler:nil];
     };


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org