feat: qrcode expired try

This commit is contained in:
手瓜一十雪
2024-05-08 19:43:33 +08:00
parent b83b51a48d
commit 46b8119e39
3 changed files with 5 additions and 5 deletions

View File

@@ -242,8 +242,8 @@ async function onSettingWindowCreated(view: Element) {
// 开关
doc.querySelectorAll('setting-switch[data-config-key]').forEach((dom: Element) => {
dom.addEventListener('click', () => {
const active = dom.getAttribute('is-active') === undefined
//@ts-ignore 等待修复
const active = dom.getAttribute('is-active') == undefined;
//@ts-ignore 扩展
setOB11Config(dom.dataset.configKey, active)
if (active) dom.setAttribute('is-active', '')
else dom.removeAttribute('is-active')