Skip to content

Commit

Permalink
移除测试代码
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyuesaves committed Apr 19, 2024
1 parent 32dc68c commit 5da9842
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/render_modules/checkUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5da9842

Please sign in to comment.