From 1ff19edeb31d40a9e65c1600b5bd8424d6aabfbd Mon Sep 17 00:00:00 2001 From: Mauro Balades Date: Sat, 17 Aug 2024 01:32:35 +0200 Subject: [PATCH] refactor: Add lazy loading for images in ZenThemeMarketplaceChild.sys.mjs Add lazy loading for images in the ZenThemeMarketplaceChild.sys.mjs file to improve page load performance. The `addIntallButtons` method has been modified to select all action buttons and error messages, and remove any existing error messages. It also adds event listeners to the action buttons for installing themes. Additionally, a new `installTheme` method has been added to handle the installation of themes when a button is clicked. --- src/actors/ZenThemeMarketplaceChild.sys.mjs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/actors/ZenThemeMarketplaceChild.sys.mjs b/src/actors/ZenThemeMarketplaceChild.sys.mjs index f95af1d..747f015 100644 --- a/src/actors/ZenThemeMarketplaceChild.sys.mjs +++ b/src/actors/ZenThemeMarketplaceChild.sys.mjs @@ -20,7 +20,6 @@ export class ZenThemeMarketplaceChild extends JSWindowActorChild { } async addIntallButtons() { - return; const actionButton = this.contentWindow.document.getElementById("install-theme"); const errorMessage = this.contentWindow.document.getElementById("install-theme-error"); if (actionButton) {