Skip to content

Commit

Permalink
fix: renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Aug 12, 2024
1 parent 0f7bfe1 commit 0a17a38
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions static/assets/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"),
Expand Down

0 comments on commit 0a17a38

Please sign in to comment.