This commit is contained in:
Vanessa 2023-05-09 19:27:47 +08:00
parent 1e04a4aa07
commit ae7660f9ef
2 changed files with 11 additions and 9 deletions

View file

@ -246,7 +246,7 @@ export const bazaar = {
hasSetting = item.__proto__.hasOwnProperty("openSetting");
return true;
}
})
});
}
html += `<div data-obj='${JSON.stringify(dataObj)}' class="b3-card${item.current ? " b3-card--current" : ""}">
<div class="b3-card__img"><img src="${item.iconURL}" onerror="this.src='${item.previewURLThumb}'"/></div>
@ -606,10 +606,10 @@ export const bazaar = {
} else if (type === "setting") {
app.plugins.find((item: Plugin) => {
if (item.name === dataObj.name) {
item.openSetting()
return true
item.openSetting();
return true;
}
})
});
event.preventDefault();
event.stopPropagation();
break;