From 784550853cf6630ea98b158bfbe02eb84ebacb42 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 4 Sep 2019 14:32:03 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt index 1d1509058..c3db2f5ee 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt +++ b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeRule.kt @@ -516,6 +516,7 @@ class AnalyzeRule(private var book: BaseBook? = null) { @Throws(Exception::class) private fun evalJS(jsStr: String, result: Any?): Any { val bindings = SimpleBindings() + bindings["analyzeRule"] = this bindings["book"] = book bindings["java"] = JsExtensions() bindings["result"] = result