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"); |
+ } |
} |
} |