diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-09-05 20:00:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-05 20:00:08 -0400 |
commit | 97a80276f6ce5834ab1b9ad12309df4f6f2f3ec5 (patch) | |
tree | 28aa37aa95832cd51d55011ded62dfdbb649703e /ext/js/language/dictionary-worker-handler.js | |
parent | f68ad1f843607d4ba1ad216fe16305c420cee8d6 (diff) |
Database readwrite transaction updates (#1932)
* Add _readWriteTransaction helper
* Improve deleteDictionary order
* Make onProgress event optional
* Simplify progress rate parameter
Diffstat (limited to 'ext/js/language/dictionary-worker-handler.js')
-rw-r--r-- | ext/js/language/dictionary-worker-handler.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/language/dictionary-worker-handler.js b/ext/js/language/dictionary-worker-handler.js index 3ce744f9..8aa6a265 100644 --- a/ext/js/language/dictionary-worker-handler.js +++ b/ext/js/language/dictionary-worker-handler.js @@ -84,7 +84,7 @@ class DictionaryWorkerHandler { async _deleteDictionary({dictionaryTitle}, onProgress) { const dictionaryDatabase = await this._getPreparedDictionaryDatabase(); try { - return await dictionaryDatabase.deleteDictionary(dictionaryTitle, {rate: 1000}, onProgress); + return await dictionaryDatabase.deleteDictionary(dictionaryTitle, 1000, onProgress); } finally { dictionaryDatabase.close(); } |