benvallack commented on issue #338: Improve beforeload event URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/338#issuecomment-533144114 I'm struggling to see how to use this with Ionic 4. How does one call the callback function in the beforeload event handler when using the new .subscribe style way of dealing with events? browser.on("beforeload") .subscribe( (ev: InAppBrowserEvent) => { console.log(ev.url); browser._loadAfterBeforeload(ev.url); }, err => { }); The event is being fired as I see the url in the console - but the above wont build - I just guessed with the _loadAfterBeforeload function but it doesn't work. How do I call the callback to continue loading the url in this event?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
