aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/dictionary-importer.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-04 17:54:34 -0400
committerGitHub <noreply@github.com>2020-09-04 17:54:34 -0400
commitd8f488e28c7d2eb0cf84611ea2ea9c26ed57cb1f (patch)
treef7f121c9bfa384375d84a5fe4014f782d8421ea2 /ext/bg/js/dictionary-importer.js
parent8cd5a2f75f192417eee49f221029d50d77aef82d (diff)
Settings dictionary import refactor (#759)
* Fix .purge not re-opening the database after deletion failure * Create DictionaryImportController * Remove backend dictionary import
Diffstat (limited to 'ext/bg/js/dictionary-importer.js')
-rw-r--r--ext/bg/js/dictionary-importer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/dictionary-importer.js b/ext/bg/js/dictionary-importer.js
index 535756f7..2ad2ebe4 100644
--- a/ext/bg/js/dictionary-importer.js
+++ b/ext/bg/js/dictionary-importer.js
@@ -190,7 +190,7 @@ class DictionaryImporter {
try {
await dictionaryDatabase.bulkAdd(objectStoreName, entries, i, count);
} catch (e) {
- errors.push(errorToJson(e));
+ errors.push(e);
}
loadedCount += count;