From f2157b914bb4a58a56b778b0b8e482c7f5941956 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sat, 4 Sep 2021 21:00:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/help/JsExtensions.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/help/JsExtensions.kt b/app/src/main/java/io/legado/app/help/JsExtensions.kt index 850d9c92c..93a8ec98f 100644 --- a/app/src/main/java/io/legado/app/help/JsExtensions.kt +++ b/app/src/main/java/io/legado/app/help/JsExtensions.kt @@ -444,7 +444,9 @@ interface JsExtensions { * 输出调试日志 */ fun log(msg: String): String { - Debug.log(msg) + getSource()?.let { + Debug.log(it.getStoreUrl(), msg) + } ?: Debug.log(msg) return msg }