mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
a1badcd9a1
@ -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');
|
||||
});
|
||||
|
@ -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(
|
||||
'<span id="napcat-update-title">Napcat</span>',
|
||||
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");
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user