From 39049231676139a50b7336df23aedcccfdc0265b Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sat, 13 Jul 2024 13:46:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyPublic.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index 2e6d0bbf..99704494 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -609,8 +609,11 @@ function getHistory(){ } // 获取图标地址 function getIcon(icon) { + if(!icon.includes('.svg')){ + return codepath + icon; + } let color = getItem('主题颜色',''); - return config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'img/' + icon + (!color?'':'?s='+color+'@js=' + $.toString((color) => { + return codepath + 'img/' + icon + (!color?'':'?s='+color+'@js=' + $.toString((color) => { let javaImport = new JavaImporter(); javaImport.importPackage(Packages.com.example.hikerview.utils); with(javaImport) {