|
|
@ -180,6 +180,7 @@ class AjaxWebView { |
|
|
|
mWebView.get()?.evaluateJavascript(mJavaScript) { |
|
|
|
mWebView.get()?.evaluateJavascript(mJavaScript) { |
|
|
|
if (it.isNotEmpty() && it != "null") { |
|
|
|
if (it.isNotEmpty() && it != "null") { |
|
|
|
val content = StringEscapeUtils.unescapeJson(it) |
|
|
|
val content = StringEscapeUtils.unescapeJson(it) |
|
|
|
|
|
|
|
.replace("^\"|\"$".toRegex(), "") |
|
|
|
handler.obtainMessage(MSG_SUCCESS, Res(url, content)) |
|
|
|
handler.obtainMessage(MSG_SUCCESS, Res(url, content)) |
|
|
|
.sendToTarget() |
|
|
|
.sendToTarget() |
|
|
|
handler.removeCallbacks(this) |
|
|
|
handler.removeCallbacks(this) |
|
|
|