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 Wladimir's feedback Created March 15, 2017, 4:51 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 cce3937f49c4c09551b26a582d0437c86dfa258f..0fd82425ad0d248c2407bf3d05dd8877c8f9230c 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