From d33bcb02208c2cddb86a9aac15da31d4e3808758 Mon Sep 17 00:00:00 2001
From: ewwwgiddings <ewgiddings@gmail.com>
Date: Fri, 4 Jan 2019 16:08:20 -0500
Subject: [PATCH] feat(in-app-browser): add 'beforeload' as option (#2863)

Please see the issue I created here for more information: https://github.com/ionic-team/ionic-native/issues/2861

This allows Ionic-Native to be used with the latest features of Cordova InAppBrowser's github.
---
 src/@ionic-native/plugins/in-app-browser/index.ts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/@ionic-native/plugins/in-app-browser/index.ts b/src/@ionic-native/plugins/in-app-browser/index.ts
index 058db0fbf..8a10ed055 100644
--- a/src/@ionic-native/plugins/in-app-browser/index.ts
+++ b/src/@ionic-native/plugins/in-app-browser/index.ts
@@ -78,6 +78,8 @@ export interface InAppBrowserOptions {
   fullscreen?: 'yes';
   /** (Android Only) Sets whether the WebView should enable support for the "viewport" HTML meta tag or should use a wide viewport. When the value of the setting is no, the layout width is always set to the width of the WebView control in device-independent (CSS) pixels. When the value is yes and the page contains the viewport meta tag, the value of the width specified in the tag is used. If the page does not contain the tag or does not provide a width, then a wide viewport will be used. (defaults to yes). */
   useWideViewPort?: 'yes' | 'no';
+  /** Allows for latest 'beforeload' feature of Cordova InAppBrowser to be registered as an option if using plugin's latest github master (1/4/2019) instead of npm. Post is currently not supported but will be. */
+  beforeload?: 'yes' | 'post' | 'get';
   /**
    * @hidden
    */