Fix theme export behavior by cleaning up DOM elements

Ensure the temporary link element is removed after triggering the export action to prevent cluttering the DOM. Additionally, display a success message upon successful theme export for better user feedback.
This commit is contained in:
Pdzly
2025-04-25 18:51:44 +02:00
parent a233c6be8c
commit 5f552bb749

View File

@@ -242,6 +242,8 @@ var gZenMarketplaceManager = {
document.body.appendChild(a);
a.click();
a.remove();
successBox.hidden = false;
} catch (error) {
console.error('[ZenThemeMarketplaceParent:settings]: Error while exporting themes:', error);
errorBox.hidden = false;