mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-08 11:49:59 +02: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:
parent
a233c6be8c
commit
5f552bb749
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue