feat: qrcode expired try

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

No files matched your search

Submodule src/core updated: 8cf3b85ffb...45388bd385.
+2 -2
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')