diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-08 15:52:34 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-08 16:01:29 -0500 |
commit | 2dad7f888b77c7c0293512076b719026f6b95de9 (patch) | |
tree | bfa67f43cebaee618e6f3c4f178db69e53a6dd05 /ext/bg/js/util.js | |
parent | 0156869a3d8c4236594035e072b084b7c2ea8f16 (diff) |
Update how errors are reported when importing a dictionary
Diffstat (limited to 'ext/bg/js/util.js')
-rw-r--r-- | ext/bg/js/util.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js index 93bb7047..fedfa466 100644 --- a/ext/bg/js/util.js +++ b/ext/bg/js/util.js @@ -106,13 +106,13 @@ function utilDatabaseDeleteDictionary(dictionaryName, onProgress) { return utilBackend().translator.database.deleteDictionary(dictionaryName, onProgress); } -async function utilDatabaseImport(data, progress, exceptions, details) { +async function utilDatabaseImport(data, progress, details) { // Edge cannot read data on the background page due to the File object // being created from a different window. Read on the same page instead. if (EXTENSION_IS_BROWSER_EDGE) { data = await utilReadFile(data); } - return utilBackend().translator.database.importDictionary(data, progress, exceptions, details); + return utilBackend().translator.database.importDictionary(data, progress, details); } function utilReadFile(file) { |