private boolean overrideOAuth(Uri uri) {
                if (uri.getScheme().equals(getString(R.string.github_oauth_scheme))) {
                    Intent data = new Intent();
                    data.setData(uri);
                    setResult(RESULT_OK, data);
                    finish();
                    return true;
                }

                return false;
            }
This method will inject polyfills to the auth javascript if the version is
below Lollipop. After Lollipop WebView is updated via the Play Store so the polyfills
are not needed.

@param url The requests url
@return null if there request should not be altered or a new response
    instance with polyfills.
app/src/main/java/com/github/pockethub/android/accounts/LoginWebViewActivity.java