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

Unified Diff: popup.js

Issue 29374674: Issue 4864 - Start using ESLint for adblockpluschrome (Closed)
Patch Set: Addressed more feedback Created March 31, 2017, 8:23 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 | « options.js ('k') | qunit/.eslintrc.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: popup.js
diff --git a/popup.js b/popup.js
index 42103339a09bd6e430a0e0cc29b857124fd0bbde..6675434534f74aff00029f555356bf716efd392a 100644
--- a/popup.js
+++ b/popup.js
@@ -49,10 +49,10 @@ function onLoad()
);
}
- // Ask content script whether clickhide is active. If so, show cancel button.
- // If that isn't the case, ask background.html whether it has cached filters. If so,
- // ask the user whether she wants those filters.
- // Otherwise, we are in default state.
+ // Ask content script whether clickhide is active. If so, show
+ // cancel button. If that isn't the case, ask background.html
+ // whether it has cached filters. If so, ask the user whether she
+ // wants those filters. Otherwise, we are in default state.
if (page)
{
if (checkWhitelisted(page))
@@ -66,9 +66,15 @@ function onLoad()
}
});
- document.getElementById("enabled").addEventListener("click", toggleEnabled, false);
- document.getElementById("clickhide").addEventListener("click", activateClickHide, false);
- document.getElementById("clickhide-cancel").addEventListener("click", cancelClickHide, false);
+ document.getElementById("enabled").addEventListener(
+ "click", toggleEnabled, false
+ );
+ document.getElementById("clickhide").addEventListener(
+ "click", activateClickHide, false
+ );
+ document.getElementById("clickhide-cancel").addEventListener(
+ "click", cancelClickHide, false
+ );
document.getElementById("options").addEventListener("click", () =>
{
ext.showOptions();
@@ -79,7 +85,11 @@ function onLoad()
{
collapser.addEventListener("click", toggleCollapse, false);
if (!Prefs[collapser.dataset.option])
- document.getElementById(collapser.dataset.collapsable).classList.add("collapsed");
+ {
+ document.getElementById(
+ collapser.dataset.collapsable
+ ).classList.add("collapsed");
+ }
}
}
« no previous file with comments | « options.js ('k') | qunit/.eslintrc.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld