mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
feat: Made open config path button work
This commit is contained in:
parent
9ff851ebb4
commit
1cc726bcdc
@ -211,6 +211,10 @@ async function onSettingWindowCreated(view: Element) {
|
||||
})
|
||||
});
|
||||
|
||||
doc.querySelector('#config-open-log-path').addEventListener('click', () => {
|
||||
window.LiteLoader.api.openPath(window.LiteLoader.plugins['LLOneBot'].path.data);
|
||||
})
|
||||
|
||||
// 开关
|
||||
doc.querySelectorAll('setting-switch[data-config-key]').forEach((dom: HTMLElement) => {
|
||||
dom.addEventListener('click', () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user