mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化代码
This commit is contained in:
parent
e99cfe1083
commit
d80e70ca8d
@ -191,7 +191,7 @@ class AjaxWebView {
|
||||
params.sourceRegex?.let {
|
||||
if (url.matches(it.toRegex())) {
|
||||
try {
|
||||
val response = StrResponse(view.url ?: params.url, url)
|
||||
val response = StrResponse(params.url, url)
|
||||
handler.obtainMessage(MSG_SUCCESS, response).sendToTarget()
|
||||
} catch (e: Exception) {
|
||||
handler.obtainMessage(MSG_ERROR, e).sendToTarget()
|
||||
|
Loading…
Reference in New Issue
Block a user