mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-06 01:46:35 +00:00
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:
@@ -242,6 +242,8 @@ var gZenMarketplaceManager = {
|
|||||||
|
|
||||||
document.body.appendChild(a);
|
document.body.appendChild(a);
|
||||||
a.click();
|
a.click();
|
||||||
|
a.remove();
|
||||||
|
successBox.hidden = false;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('[ZenThemeMarketplaceParent:settings]: Error while exporting themes:', error);
|
console.error('[ZenThemeMarketplaceParent:settings]: Error while exporting themes:', error);
|
||||||
errorBox.hidden = false;
|
errorBox.hidden = false;
|
||||||
|
Reference in New Issue
Block a user