pull/48/head
kunfei 5 years ago
parent 2b90115ef7
commit e0a8544a14
  1. 2
      app/src/main/java/io/legado/app/help/http/AjaxWebView.kt

@ -182,7 +182,7 @@ class AjaxWebView {
private val mWebView: WeakReference<WebView> = WeakReference(webView) private val mWebView: WeakReference<WebView> = WeakReference(webView)
override fun run() { override fun run() {
mWebView.get()?.evaluateJavascript(mJavaScript) { mWebView.get()?.evaluateJavascript(mJavaScript) {
if (it.isNotEmpty()) { if (it.isNotEmpty() && it != "null") {
val content = StringEscapeUtils.unescapeJson(it) val content = StringEscapeUtils.unescapeJson(it)
handler.obtainMessage(MSG_SUCCESS, Response(url, content)) handler.obtainMessage(MSG_SUCCESS, Response(url, content))
.sendToTarget() .sendToTarget()

Loading…
Cancel
Save