From 5da98427e2100f2695a1679fe3eeeef20721500d Mon Sep 17 00:00:00 2001 From: xiyuesaves Date: Fri, 19 Apr 2024 23:48:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=B5=8B=E8=AF=95=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/render_modules/checkUpdate.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/render_modules/checkUpdate.js b/src/render_modules/checkUpdate.js index 5838fb4f..f4ed9995 100644 --- a/src/render_modules/checkUpdate.js +++ b/src/render_modules/checkUpdate.js @@ -38,14 +38,17 @@ async function checkUpdate(view) { return res.json(); }) .then((json) => { - if (compareVersions(LiteLoader.plugins.lite_tools.manifest.version, json.tag_name) || true) { + if (compareVersions(LiteLoader.plugins.lite_tools.manifest.version, json.tag_name)) { const newVersionEl = document.createElement("span"); const aLink = document.createElement("a"); aLink.innerText = json.tag_name.replace("v", ""); aLink.classList.add("link"); aLink.addEventListener("click", () => { - // lite_tools.openWeb("https://github.com/xiyuesaves/LiteLoaderQQNT-lite_tools/releases/latest"); - openChangeLog(simpleMarkdownToHTML(json.body), json.assets[0].browser_download_url, "https://github.com/xiyuesaves/LiteLoaderQQNT-lite_tools/releases/latest"); + openChangeLog( + simpleMarkdownToHTML(json.body), + json.assets[0].browser_download_url, + "https://github.com/xiyuesaves/LiteLoaderQQNT-lite_tools/releases/latest", + ); }); newVersionEl.innerText = ` 已发布新版本`; newVersionEl.appendChild(aLink);