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

This commit is contained in:
filmaj 2017-04-25 16:19:48 -07:00
parent b923e88b23
commit bfb33988be

View File

@ -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);