${window.siyuan.languages.downloaded}
@@ -172,7 +172,7 @@ export const bazaar = {
repoHash: item.repoHash,
downloaded: false,
};
- const fundingKey = Object.keys(item.fundingUrl)[0];
+ const fundingKey = item.fundingUrl ? Object.keys(item.fundingUrl)[0] : "";
return `
@@ -582,7 +582,7 @@ export const bazaar = {
} else if (type === "plugin") {
fetchPost("/api/bazaar/getBazaarPlugin", {}, response => {
bazaar._onBazaar(response, "plugins", false);
- bazaar._data.themes = response.data.packages;
+ bazaar._data.plugins = response.data.packages;
});
}
item.setAttribute("data-init", "true");
@@ -671,6 +671,8 @@ export const bazaar = {
id = "#configBazaarIcon";
} else if (bazaarType === "widgets") {
id = "#configBazaarWidget";
+ } else if (bazaarType === "plugins") {
+ id = "#configBazaarPlugin";
}
const element = bazaar.element.querySelector(id);
if (response.code === 1) {