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)
override fun run() {
mWebView.get()?.evaluateJavascript(mJavaScript) {
if (it.isNotEmpty()) {
if (it.isNotEmpty() && it != "null") {
val content = StringEscapeUtils.unescapeJson(it)
handler.obtainMessage(MSG_SUCCESS, Response(url, content))
.sendToTarget()

Loading…
Cancel
Save