Skip to content

Commit

Permalink
Hide compatibility error ("not firefox" or "firefox too old")
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacSchemm committed Oct 31, 2017
1 parent a3fcda1 commit e18b019
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/content/frame-script.js
Expand Up @@ -255,8 +255,12 @@ var newAmoBr = {

newSiteMessage.appendChild(this.createAddonInfoDiv(this.getAddonId()));

const installButton = content.document.querySelector('div.InstallButton');
installButton.style.display = 'none';
for (let elementToHide of [
content.document.querySelector('div.InstallButton'),
content.document.querySelector('.AddonCompatibilityError')
]) {
if (elementToHide) elementToHide.style.display = 'none';
}
},
}

Expand Down

0 comments on commit e18b019

Please sign in to comment.