mirror of
https://github.com/zen-browser/desktop.git
synced 2026-06-13 15:03:41 +00:00
gh-13941: Fixed boost button viable when non-effective (gh-13953)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user