Refactored code to comply with Google Style Guides
This commit refactors JS, MD and Bash files in order to comply with the
Google style guides.
Change-Id: I5bc9a175d2400fa1095ba9eb1c8cff3ebfef4b8f
diff --git a/src/forum_inject.js b/src/forum_inject.js
index a2209cd..38b56ce 100644
--- a/src/forum_inject.js
+++ b/src/forum_inject.js
@@ -9,13 +9,14 @@
};
var intersectionOptions = {
- threshold: 1.0
-}
+ threshold: 1.0,
+};
chrome.storage.sync.get(null, function(items) {
- var button = document.querySelector(".thread-list-threads__load-more-button");
+ var button = document.querySelector('.thread-list-threads__load-more-button');
if (items.list && button !== null) {
- intersectionObserver = new IntersectionObserver(intersectionCallback, intersectionOptions);
+ intersectionObserver =
+ new IntersectionObserver(intersectionCallback, intersectionOptions);
intersectionObserver.observe(button);
}
});