Skip to content

Instantly share code, notes, and snippets.

@sax1johno
Created August 12, 2016 18:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sax1johno/b27db2a544c49ce6e2feae543e85be1f to your computer and use it in GitHub Desktop.
Save sax1johno/b27db2a544c49ce6e2feae543e85be1f to your computer and use it in GitHub Desktop.
Code in NativeScript to overload URL's in a rendered web page and display them in a content-appropriate way.
@dxshindeo
Copy link

dxshindeo commented Oct 18, 2017

Thanks, much appreciated!
It is worth mentioning that this works on livesync, but crashes upon java compiling at build.
The fix is not to extend a java class directly, but through a reference:

var WebViewClientClass = android.webkit.WebViewClient;
var MyWebViewClient = WebViewClientClass.extend({

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment