Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: popup.js

Issue 29338764: Issue 3842 - Split up the logic updating the icon and context menu (Closed)
Patch Set: Rebased Created March 22, 2016, 8:26 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/whitelisting.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: popup.js
===================================================================
--- a/popup.js
+++ b/popup.js
@@ -36,7 +36,7 @@
if (!page || (page.url.protocol != "http:" &&
page.url.protocol != "https:"))
document.body.classList.add("local");
- else if (!backgroundPage.htmlPages.has(page))
+ else if (!require("filterComposer").isPageReady(page))
{
document.body.classList.add("nohtml");
require("messaging").getPort(window).on(
« no previous file with comments | « lib/whitelisting.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld