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/background.js b/src/background.js
index 315d6d8..3e73282 100644
--- a/src/background.js
+++ b/src/background.js
@@ -3,23 +3,23 @@
}
const defaultOptions = {
- "list": true,
- "thread": true,
- "threadall": false,
- "fixedtoolbar": false,
- "redirect": false,
- "history": false,
- "loaddrafts": false,
- "batchduplicate": false,
- "escalatethreads": false,
- "movethreads": false,
- "increasecontrast": false,
- "stickysidebarheaders": false
+ 'list': true,
+ 'thread': true,
+ 'threadall': false,
+ 'fixedtoolbar': false,
+ 'redirect': false,
+ 'history': false,
+ 'loaddrafts': false,
+ 'batchduplicate': false,
+ 'escalatethreads': false,
+ 'movethreads': false,
+ 'increasecontrast': false,
+ 'stickysidebarheaders': false,
};
function cleanUpOptions() {
chrome.storage.sync.get(null, function(options) {
- console.log("[cleanUpOptions] Previous options", options);
+ console.log('[cleanUpOptions] Previous options', options);
var ok = true;
for (const [opt, value] of Object.entries(defaultOptions)) {
if (!(opt in options)) {
@@ -28,7 +28,7 @@
}
}
- console.log("[cleanUpOptions] New options", options);
+ console.log('[cleanUpOptions] New options', options);
if (!ok) {
chrome.storage.sync.set(options);
@@ -37,7 +37,7 @@
}
chrome.runtime.onInstalled.addListener(function(details) {
- if (details.reason == "install" || details.reason == "update") {
+ if (details.reason == 'install' || details.reason == 'update') {
cleanUpOptions();
}
});