Repository: cordova-plugin-inappbrowser
Updated Branches:
  refs/heads/master b923e88b2 -> bfb33988b


CB-12266: (browser platform) loadstop event.url is now a string instead of an 
object, aligning it with the other platforms.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/commit/bfb33988
Tree: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/bfb33988
Diff: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/bfb33988

Branch: refs/heads/master
Commit: bfb33988be6dae6708a254872da3bf4081eeeb7b
Parents: b923e88
Author: filmaj <[email protected]>
Authored: Tue Apr 25 16:19:48 2017 -0700
Committer: filmaj <[email protected]>
Committed: Tue Apr 25 16:19:48 2017 -0700

----------------------------------------------------------------------
 src/browser/InAppBrowserProxy.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/bfb33988/src/browser/InAppBrowserProxy.js
----------------------------------------------------------------------
diff --git a/src/browser/InAppBrowserProxy.js b/src/browser/InAppBrowserProxy.js
index da7dacd..cc1de19 100644
--- a/src/browser/InAppBrowserProxy.js
+++ b/src/browser/InAppBrowserProxy.js
@@ -31,15 +31,15 @@ var browserWrap,
 
 function attachNavigationEvents(element, callback) {
     var onError = function () {
-        callback({ type: "loaderror", url: this.contentWindow.location}, 
{keepCallback: true});
+        callback({ type: "loaderror", url: this.contentWindow.location.href}, 
{keepCallback: true});
     };
 
     element.addEventListener("pageshow", function () {
-        callback({ type: "loadstart", url: this.contentWindow.location}, 
{keepCallback: true});
+        callback({ type: "loadstart", url: this.contentWindow.location.href}, 
{keepCallback: true});
     });
 
     element.addEventListener("load", function () {
-        callback({ type: "loadstop", url: this.contentWindow.location}, 
{keepCallback: true});
+        callback({ type: "loadstop", url: this.contentWindow.location.href}, 
{keepCallback: true});
     });
 
     element.addEventListener("error", onError);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to