CB-7690 InAppBrowser loadstart/loadstop events issues
Subscribing to events before navigating
This commit is contained in:
@@ -120,14 +120,14 @@ var IAB = {
|
||||
popup.style.width = "100%";
|
||||
popup.style.height = "100%";
|
||||
|
||||
// start listening for navigation events
|
||||
attachNavigationEvents(popup, win);
|
||||
|
||||
if (isWebViewAvailable) {
|
||||
strUrl = strUrl.replace("ms-appx://", "ms-appx-web://");
|
||||
}
|
||||
popup.src = strUrl;
|
||||
|
||||
// start listening for navigation events
|
||||
attachNavigationEvents(popup, win);
|
||||
|
||||
browserWrap.appendChild(popup);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user