mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
fix: renderer
This commit is contained in:
@@ -308,6 +308,16 @@ async function onSettingWindowCreated(view) {
|
||||
),
|
||||
SettingItem("NapCat 文档", "", SettingButton("看看文档", "open-docs"))
|
||||
]),
|
||||
SettingItem(
|
||||
"Telegram 群",
|
||||
"https://t.me/+nLZEnpne-pQ1OWFl",
|
||||
SettingButton("进去逛逛", "open-telegram")
|
||||
),
|
||||
SettingItem(
|
||||
"QQ 群",
|
||||
"518662028",
|
||||
SettingButton("我要进去", "open-qq-group")
|
||||
),
|
||||
"</div>"
|
||||
].join(""),
|
||||
"text/html"
|
||||
@@ -318,6 +328,12 @@ async function onSettingWindowCreated(view) {
|
||||
doc.querySelector("#open-docs")?.addEventListener("click", () => {
|
||||
window.open("https://napneko.github.io/", "_blank");
|
||||
});
|
||||
doc.querySelector("#open-telegram")?.addEventListener("click", () => {
|
||||
window.open("https://t.me/+nLZEnpne-pQ1OWFl", "_blank");
|
||||
});
|
||||
doc.querySelector("#open-qq-group")?.addEventListener("click", () => {
|
||||
window.open("https://qm.qq.com/q/VfjAq5HIMS", "_blank");
|
||||
});
|
||||
const buildHostListItem = (type, host, index, inputAttrs = {}) => {
|
||||
const dom = {
|
||||
container: document.createElement("setting-item"),
|
||||
|
Reference in New Issue
Block a user