From bfb33988be6dae6708a254872da3bf4081eeeb7b Mon Sep 17 00:00:00 2001 From: filmaj Date: Tue, 25 Apr 2017 16:19:48 -0700 Subject: [PATCH] CB-12266: (browser platform) loadstop event.url is now a string instead of an object, aligning it with the other platforms. --- src/browser/InAppBrowserProxy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);