gh-13941: Fixed boost button viable when non-effective (gh-13953)

This commit is contained in:
sporocyst
2026-05-30 18:26:20 +08:00
committed by GitHub
parent 7aa0ca05ec
commit 072d874f78

View File

@@ -250,12 +250,12 @@ export class nsZenSiteDataPanel {
const boostButton = this.document.getElementById("zen-site-data-boost");
if (!canBoostSite) {
boostButton.removeAttribute("boosting");
}
if (!canBoostSite) {
boostButton.setAttribute("disabled", "true");
return;
}
boostButton.removeAttribute("disabled");
if (lazy.gZenBoostsManager.registeredBoostForDomain(domain)) {
boostButton.setAttribute("boosting", "true");
} else {