From f88c98a5571f832d2988ae8f34458bd0d324e7e6 Mon Sep 17 00:00:00 2001 From: MUK Date: Sat, 27 Jan 2024 20:00:25 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E6=B7=BB=E5=8A=A0=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=A1=B5=E9=9D=A2=E5=B0=8F=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/renderer.js b/src/renderer.js index 89a92ad..7ac12ac 100644 --- a/src/renderer.js +++ b/src/renderer.js @@ -344,6 +344,14 @@ export const onSettingWindowCreated = async view => { view.innerHTML = await (await fetch(html_file_path)).text(); + // 添加插件图标 + document.querySelectorAll(".nav-item.liteloader").forEach((node) => { + // 本插件图标 + if (node.textContent === "DeepL") { + node.querySelector(".q-icon").innerHTML = ``; + } + }); + // 获取设置 const settings = await deepl_plugin.getSettings();