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