mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -235,7 +235,9 @@ interface BaseSource : JsExtensions {
|
||||
bindings["baseUrl"] = getKey()
|
||||
bindings["cookie"] = CookieStore
|
||||
bindings["cache"] = CacheManager
|
||||
return SCRIPT_ENGINE.eval(jsStr, bindings)
|
||||
val scope = SCRIPT_ENGINE.getRuntimeScope(SCRIPT_ENGINE.getScriptContext(bindings))
|
||||
scope.prototype = getShareScope()
|
||||
return SCRIPT_ENGINE.eval(jsStr, scope)
|
||||
}
|
||||
|
||||
fun getShareScope(): Scriptable? {
|
||||
|
||||
Reference in New Issue
Block a user