fix building themes on preferences

This commit is contained in:
mauro-balades
2024-08-30 11:47:13 +02:00
parent 758a5cc44a
commit b586880d44

View File

@@ -144,6 +144,8 @@ var gZenMarketplaceManager = {
},
async _buildThemesList() {
if (this.__alreadyBuilding) return;
this.__alreadyBuilding = true;
let themes = await this._getThemes();
this.themesList.innerHTML = "";
for (let theme of Object.values(themes)) {
@@ -202,6 +204,7 @@ var gZenMarketplaceManager = {
this.themesList.appendChild(preferencesWrapper);
}
}
this.__alreadyBuilding = false;
}
};