Skip to content

Commit

Permalink
TG频道
Browse files Browse the repository at this point in the history
  • Loading branch information
MUKAPP committed Apr 10, 2024
1 parent 9e806ae commit e35b343
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,12 @@ export const onSettingWindowCreated = async view => {
console.error(error);
});

// tg 频道
const tgChannel = view.querySelector("#deepl-tg-channel");
tgChannel.addEventListener("click", () => {
deepl_plugin.openWeb("https://t.me/MUKAPP_Personal");
});

} catch (error) {
log("[设置页面错误]", error);
}
Expand Down
7 changes: 7 additions & 0 deletions src/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@
</div>
<setting-button data-type="primary" id="deepl-settings-go-to-update">去更新</setting-button>
</setting-item>
<setting-item data-direction="row">
<div>
<setting-text>Telegram 频道</setting-text>
<setting-text data-type="secondary">https://t.me/MUKAPP_Personal</setting-text>
</div>
<setting-button data-type="secondary" id="deepl-tg-channel">进去瞅瞅</setting-button>
</setting-item>
</setting-list>
</setting-panel>
</setting-section>

0 comments on commit e35b343

Please sign in to comment.