From 7968b79039f867e01ccbf024b644c09b6a30473e Mon Sep 17 00:00:00 2001 From: tmlnv Date: Mon, 5 May 2025 20:26:38 +0300 Subject: [PATCH] fix: fixed actionButtonUninstall typo in ZenThemeMarketplaceChild --- src/zen/mods/actors/ZenThemeMarketplaceChild.sys.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/zen/mods/actors/ZenThemeMarketplaceChild.sys.mjs b/src/zen/mods/actors/ZenThemeMarketplaceChild.sys.mjs index 0270e0fa7..19912c7f6 100644 --- a/src/zen/mods/actors/ZenThemeMarketplaceChild.sys.mjs +++ b/src/zen/mods/actors/ZenThemeMarketplaceChild.sys.mjs @@ -113,9 +113,9 @@ export class ZenThemeMarketplaceChild extends JSWindowActorChild { async addInstallButtons() { const actionButton = this.actionButton; - const actionButtonUnnstall = this.actionButtonUninstall; + const actionButtonUninstall = this.actionButtonUninstall; const errorMessage = this.contentWindow.document.getElementById('install-theme-error'); - if (!actionButton || !actionButtonUnnstall) { + if (!actionButton || !actionButtonUninstall) { return; } @@ -123,13 +123,13 @@ export class ZenThemeMarketplaceChild extends JSWindowActorChild { const themeId = actionButton.getAttribute('zen-theme-id'); if (await this.isThemeInstalled(themeId)) { - actionButtonUnnstall.classList.remove('hidden'); + actionButtonUninstall.classList.remove('hidden'); } else { actionButton.classList.remove('hidden'); } actionButton.addEventListener('click', this.installTheme.bind(this)); - actionButtonUnnstall.addEventListener('click', this.uninstallTheme.bind(this)); + actionButtonUninstall.addEventListener('click', this.uninstallTheme.bind(this)); } async isThemeInstalled(themeId) {