diff options
author | Cashew <52880648+Scrub1492@users.noreply.github.com> | 2023-12-20 14:46:48 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-20 05:46:48 +0000 |
commit | b13fbd47941fc20cf623871396e34a6dfe9b4dba (patch) | |
tree | 9707c433acae7575bab8991119abf9925b197083 /ext/js/language/dictionary-database.js | |
parent | fa2fbfa0242764a2b2af133b9b2ce54861967922 (diff) |
rename variables (#404)
Diffstat (limited to 'ext/js/language/dictionary-database.js')
-rw-r--r-- | ext/js/language/dictionary-database.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/language/dictionary-database.js b/ext/js/language/dictionary-database.js index c47e1e90..45c5c6fd 100644 --- a/ext/js/language/dictionary-database.js +++ b/ext/js/language/dictionary-database.js @@ -205,7 +205,7 @@ export class DictionaryDatabase { onProgress(progressData); return keys; }; - const onProgress2 = () => { + const onProgressWrapper = () => { const processed = progressData.processed + 1; progressData.processed = processed; if ((processed % progressRate) === 0 || processed === progressData.count) { @@ -217,7 +217,7 @@ export class DictionaryDatabase { const promises = []; for (const [objectStoreName, indexName] of targets) { const query = IDBKeyRange.only(dictionaryName); - const promise = this._db.bulkDelete(objectStoreName, indexName, query, filterKeys, onProgress2); + const promise = this._db.bulkDelete(objectStoreName, indexName, query, filterKeys, onProgressWrapper); promises.push(promise); } await Promise.all(promises); |