优化代码

pull/736/head
gedoor 4 years ago
parent e99cfe1083
commit d80e70ca8d
  1. 2
      app/src/main/java/io/legado/app/help/http/AjaxWebView.kt

@ -191,7 +191,7 @@ class AjaxWebView {
params.sourceRegex?.let { params.sourceRegex?.let {
if (url.matches(it.toRegex())) { if (url.matches(it.toRegex())) {
try { try {
val response = StrResponse(view.url ?: params.url, url) val response = StrResponse(params.url, url)
handler.obtainMessage(MSG_SUCCESS, response).sendToTarget() handler.obtainMessage(MSG_SUCCESS, response).sendToTarget()
} catch (e: Exception) { } catch (e: Exception) {
handler.obtainMessage(MSG_ERROR, e).sendToTarget() handler.obtainMessage(MSG_ERROR, e).sendToTarget()

Loading…
Cancel
Save