Cleanup
This commit is contained in:
parent
e6cb339ff5
commit
a856ea20b4
@ -12,8 +12,7 @@ class AutoSolvingWebViewClient(
|
|||||||
verifyComplete: (String) -> Boolean,
|
verifyComplete: (String) -> Boolean,
|
||||||
injectScript: String?,
|
injectScript: String?,
|
||||||
headers: Map<String, String>
|
headers: Map<String, String>
|
||||||
) :
|
) : HeadersInjectingWebViewClient(activity, verifyComplete, injectScript, headers) {
|
||||||
HeadersInjectingWebViewClient(activity, verifyComplete, injectScript, headers) {
|
|
||||||
|
|
||||||
override fun shouldInterceptRequest(view: WebView, request: WebResourceRequest): WebResourceResponse? {
|
override fun shouldInterceptRequest(view: WebView, request: WebResourceRequest): WebResourceResponse? {
|
||||||
// Inject our custom script into the recaptcha iframes
|
// Inject our custom script into the recaptcha iframes
|
||||||
|
@ -9,8 +9,7 @@ open class HeadersInjectingWebViewClient(
|
|||||||
verifyComplete: (String) -> Boolean,
|
verifyComplete: (String) -> Boolean,
|
||||||
injectScript: String?,
|
injectScript: String?,
|
||||||
private val headers: Map<String, String>
|
private val headers: Map<String, String>
|
||||||
) :
|
) : BasicWebViewClient(activity, verifyComplete, injectScript) {
|
||||||
BasicWebViewClient(activity, verifyComplete, injectScript) {
|
|
||||||
|
|
||||||
override fun shouldInterceptRequest(view: WebView, request: WebResourceRequest): WebResourceResponse? {
|
override fun shouldInterceptRequest(view: WebView, request: WebResourceRequest): WebResourceResponse? {
|
||||||
// Temp disabled as it's unreliable
|
// Temp disabled as it's unreliable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user