aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Yatskov <FooSoft@users.noreply.github.com>2019-08-29 17:57:44 -0700
committerGitHub <noreply@github.com>2019-08-29 17:57:44 -0700
commitccb0c0610c3f6d7784eb6c54009f2e6af9e2fed1 (patch)
treed5679c9727f920b1f820cf493d0690d4116a406c
parent6d4bede50c441d57c0837415bcdd27e11715a248 (diff)
parent7ba71de5e772cf1bbde9510a0cae8b9f9cbc8936 (diff)
Merge pull request #194 from toasted-nutbread/fix-storage-stats-quotes
Replace double quotes with single quotes
-rw-r--r--ext/bg/js/settings.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/bg/js/settings.js b/ext/bg/js/settings.js
index e542118c..cdcdae77 100644
--- a/ext/bg/js/settings.js
+++ b/ext/bg/js/settings.js
@@ -599,7 +599,7 @@ async function getBrowser() {
function storageBytesToLabeledString(size) {
const base = 1000;
- const labels = ["bytes", "KB", "MB", "GB"];
+ const labels = ['bytes', 'KB', 'MB', 'GB'];
let labelIndex = 0;
while (size >= base) {
size /= base;
@@ -619,14 +619,14 @@ storageEstimate.mostRecent = null;
async function storageInfoInitialize() {
const browser = await getBrowser();
- const container = document.querySelector("#storage-info");
- container.setAttribute("data-browser", browser);
+ const container = document.querySelector('#storage-info');
+ container.setAttribute('data-browser', browser);
await storageShowInfo();
- container.classList.remove("storage-hidden");
+ container.classList.remove('storage-hidden');
- document.querySelector("#storage-refresh").addEventListener('click', () => storageShowInfo(), false);
+ document.querySelector('#storage-refresh').addEventListener('click', () => storageShowInfo(), false);
}
async function storageUpdateStats() {
@@ -636,8 +636,8 @@ async function storageUpdateStats() {
const valid = (estimate !== null);
if (valid) {
- document.querySelector("#storage-usage").textContent = storageBytesToLabeledString(estimate.usage);
- document.querySelector("#storage-quota").textContent = storageBytesToLabeledString(estimate.quota);
+ document.querySelector('#storage-usage').textContent = storageBytesToLabeledString(estimate.usage);
+ document.querySelector('#storage-quota').textContent = storageBytesToLabeledString(estimate.quota);
}
storageUpdateStats.isUpdating = false;
@@ -649,8 +649,8 @@ async function storageShowInfo() {
storageSpinnerShow(true);
const valid = await storageUpdateStats();
- document.querySelector("#storage-use").classList.toggle("storage-hidden", !valid);
- document.querySelector("#storage-error").classList.toggle("storage-hidden", valid);
+ document.querySelector('#storage-use').classList.toggle('storage-hidden', !valid);
+ document.querySelector('#storage-error').classList.toggle('storage-hidden', valid);
storageSpinnerShow(false);
}