InAppBrowser.java: New method isURLWhileListed to check for whitelisting.

Newtest in shouldOverrideUrlLoading, to allow whitelisted custom schemes
like"mycoolapp://"

inappbrowser.js: Added "customscheme" channel.
This commit is contained in:
stevepodell 2018-04-04 08:42:00 -07:00
parent 44d9bb0f6a
commit a6c7b54998

View File

@ -285,7 +285,7 @@ public class InAppBrowser extends CordovaPlugin {
* Previously the Config class had a static method, isUrlWhitelisted(). That * Previously the Config class had a static method, isUrlWhitelisted(). That
* responsibility has been moved to the plugins, with an aggregating method in * responsibility has been moved to the plugins, with an aggregating method in
* PluginManager. * PluginManager.
*/ *
* @param url, the URL as a String * @param url, the URL as a String
* @return true if WhiteListed, otherwise null or false * @return true if WhiteListed, otherwise null or false
*/ */