aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/database.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/database.js')
-rw-r--r--ext/bg/js/database.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js
index 3b2bcfcb..31573065 100644
--- a/ext/bg/js/database.js
+++ b/ext/bg/js/database.js
@@ -87,7 +87,7 @@ class Database {
}).then(() => {
return this.cacheTagMeta(dictionaries);
}).then(() => {
- for (let result of results) {
+ for (const result of results) {
result.tagMeta = this.tagMetaCache[result.dictionary] || {};
}
@@ -115,7 +115,7 @@ class Database {
}).then(() => {
return this.cacheTagMeta(dictionaries);
}).then(() => {
- for (let result of results) {
+ for (const result of results) {
result.tagMeta = this.tagMetaCache[result.dictionary] || {};
}
@@ -129,7 +129,7 @@ class Database {
}
const promises = [];
- for (let dictionary of dictionaries) {
+ for (const dictionary of dictionaries) {
if (this.tagMetaCache[dictionary]) {
continue;
}
@@ -170,7 +170,7 @@ class Database {
return this.db.dictionaries.add({title, version, revision, hasTerms, hasKanji}).then(() => {
const rows = [];
- for (let tag in tagMeta || {}) {
+ for (const tag in tagMeta || {}) {
const meta = tagMeta[tag];
const row = sanitizeTag({
name: tag,
@@ -190,7 +190,7 @@ class Database {
const termsLoaded = (title, entries, total, current) => {
const rows = [];
- for (let [expression, reading, tags, rules, score, ...glossary] of entries) {
+ for (const [expression, reading, tags, rules, score, ...glossary] of entries) {
rows.push({
expression,
reading,
@@ -211,7 +211,7 @@ class Database {
const kanjiLoaded = (title, entries, total, current) => {
const rows = [];
- for (let [character, onyomi, kunyomi, tags, ...meanings] of entries) {
+ for (const [character, onyomi, kunyomi, tags, ...meanings] of entries) {
rows.push({
character,
onyomi,