Index: popup.js |
=================================================================== |
--- a/popup.js |
+++ b/popup.js |
@@ -23,6 +23,7 @@ |
var Prefs = require("prefs").Prefs; |
var checkWhitelisted = require("whitelisting").checkWhitelisted; |
var getDecodedHostname = require("url").getDecodedHostname; |
+var isPageReady = require("filterComposer").isPageReady; |
var port = require("messaging").port; |
var page = null; |
@@ -37,7 +38,7 @@ |
if (!page || (page.url.protocol != "http:" && |
page.url.protocol != "https:")) |
document.body.classList.add("local"); |
- else if (!backgroundPage.htmlPages.has(page)) |
+ else if (!isPageReady(page)) |
document.body.classList.add("nohtml"); |
// Ask content script whether clickhide is active. If so, show cancel button. |