From 3294079b728fb757262b9ae6ecfe00561be39509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sun, 11 Aug 2024 22:50:47 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=8E=BB=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/webui/ui/NapCat.ts | 3 --- static/assets/renderer.js | 8 +++----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/webui/ui/NapCat.ts b/src/webui/ui/NapCat.ts index 78ef21f7..24d272a6 100644 --- a/src/webui/ui/NapCat.ts +++ b/src/webui/ui/NapCat.ts @@ -185,9 +185,6 @@ async function onSettingWindowCreated(view: Element) { doc.querySelector('#open-github')?.addEventListener('click', () => { window.open('https://github.com/NapNeko/NapCatQQ', '_blank'); }); - doc.querySelector('#open-telegram')?.addEventListener('click', () => { - window.open('https://t.me/+nLZEnpne-pQ1OWFl'); - }); doc.querySelector('#open-docs')?.addEventListener('click', () => { window.open('https://napneko.github.io/', '_blank'); }); diff --git a/static/assets/renderer.js b/static/assets/renderer.js index 51f8de50..53e4bcda 100644 --- a/static/assets/renderer.js +++ b/static/assets/renderer.js @@ -69,7 +69,8 @@ window.customElements.define( if (!this.contains(target)) buttonClick(); }; this._button.addEventListener("click", buttonClick); - this._context.addEventListener("click", ({ target }) => { + this._context.addEventListener("click", (event) => { + const { target } = event; if (target.tagName !== "SETTING-OPTION") return; buttonClick(); if (target.hasAttribute("is-selected")) return; @@ -163,7 +164,7 @@ async function onSettingWindowCreated(view) { SettingItem( 'Napcat', void 0, - SettingButton("V1.8.6", "napcat-update-button", "secondary") + SettingButton("V1.8.3", "napcat-update-button", "secondary") ) ]), SettingList([ @@ -314,9 +315,6 @@ async function onSettingWindowCreated(view) { doc.querySelector("#open-github")?.addEventListener("click", () => { window.open("https://github.com/NapNeko/NapCatQQ", "_blank"); }); - doc.querySelector("#open-telegram")?.addEventListener("click", () => { - window.open("https://t.me/+nLZEnpne-pQ1OWFl"); - }); doc.querySelector("#open-docs")?.addEventListener("click", () => { window.open("https://napneko.github.io/", "_blank"); });