wvengen commented on issue #338: Improve beforeload event
URL: 
https://github.com/apache/cordova-plugin-inappbrowser/issues/338#issuecomment-533154743
 
 
   Assuming you're using typescript, I would suppose it to be something like:
   ```typescript
   browser.
     on("beforeload").
     subscribe( (ev: InAppBrowserEvent, callback: (url: string) => void ) => {
       console.log(ev.url);
       callback(ev.url);
     }, err => { });
   ```
   
   For people using typescript, I guess it would be useful to annonate the type 
for this callback.

----------------------------------------------------------------
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]

Reply via email to