Skip to content

Instantly share code, notes, and snippets.

View JonathanHindi's full-sized avatar

Jonathan Hindi JonathanHindi

View GitHub Profile
@JonathanHindi
JonathanHindi / inAppBrowser.js
Last active December 9, 2019 16:34
[PhoneGap] Open any external link inside PG inAppBrowser
/* Handle any link start with http or https using PhoneGap (Cordova) inAppBrowser
* Options you can set data-in-app-browser html attribute to one of the
* following options:
* _self - opens in the Cordova WebView if url is in the white-list, else it opens in the InAppBrowser
* _blank - always open in the InAppBrowser
* _system - always open in the system web browse
*/
$(document).on('click', 'a[href^=http], a[href^=https]', function(e){