From a22ee6ed2bdcad7f39859a63558eeb41e2bfa02c Mon Sep 17 00:00:00 2001 From: Michael Read Date: Sun, 8 Dec 2019 23:49:51 -0600 Subject: [PATCH] feat(in-app-browser): add "beforeload" callback method (#3249) * fix(in-app-browser): Added missing callback method on the "beforeload" event ([issue#3152](https://github.com/ionic-team/ionic-native/issues/3152)) * fix(in-app-browser): Missing "beforeload" callback method --- src/@ionic-native/plugins/in-app-browser/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/@ionic-native/plugins/in-app-browser/index.ts b/src/@ionic-native/plugins/in-app-browser/index.ts index f940277d3c..798f1aac16 100644 --- a/src/@ionic-native/plugins/in-app-browser/index.ts +++ b/src/@ionic-native/plugins/in-app-browser/index.ts @@ -178,6 +178,13 @@ export class InAppBrowserObject { } } + /** + * Method to be called after the "beforeload" event to continue the script + * @param strUrl {String} The URL the InAppBrowser should navigate to. + */ + @CordovaInstance({ sync: true }) + _loadAfterBeforeload(strUrl: string): void {} + /** * Displays an InAppBrowser window that was opened hidden. Calling this has no effect * if the InAppBrowser was already visible.