diff --git a/popup.js b/popup.js index 0a36e541..de1f8e62 100644 --- a/popup.js +++ b/popup.js @@ -177,6 +177,10 @@ function handleUpdate(style) { var styleElement = installed.querySelector("[style-id='" + style.id + "']"); if (styleElement) { installed.replaceChild(createStyleElement(style), styleElement); + } else if (chrome.extension.getBackgroundPage().getApplicableSections(style, location.href).length) { + // a new style for the current url is installed + document.getElementById("unavailable").style.display = "none"; + installed.appendChild(createStyleElement(style)); } }