Skip to content

Commit

Permalink
feat(in-app-browser): add "beforeload" callback method (#3249)
Browse files Browse the repository at this point in the history
* fix(in-app-browser): Added missing callback method on the "beforeload" event ([issue#3152](#3152))

* fix(in-app-browser): Missing "beforeload" callback method
  • Loading branch information
mread1208 authored and danielsogl committed Dec 9, 2019
1 parent 9250d49 commit a1b7af4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/@ionic-native/plugins/in-app-browser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,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.
Expand Down

0 comments on commit a1b7af4

Please sign in to comment.