diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-15 15:51:30 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-12-15 15:51:30 -0500 |
commit | db7e17962651c268227bc52bd32e3e5c515e4a19 (patch) | |
tree | 52d5a6146edc15e1804f0c3832e0a10a39eae42c /ext/bg/js | |
parent | 8c9416d70d18dbcef58636f3aa4ff2c16001769f (diff) |
Clear files after getting the value
Diffstat (limited to 'ext/bg/js')
-rw-r--r-- | ext/bg/js/settings/dictionaries.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/bg/js/settings/dictionaries.js b/ext/bg/js/settings/dictionaries.js index 69f6d544..717d02cb 100644 --- a/ext/bg/js/settings/dictionaries.js +++ b/ext/bg/js/settings/dictionaries.js @@ -557,6 +557,9 @@ async function onDictionaryPurge(e) { } async function onDictionaryImport(e) { + const files = [...e.target.files]; + e.target.value = null; + const dictFile = $('#dict-file'); const dictControls = $('#dict-importer').hide(); const dictProgress = $('#dict-import-progress').show(); @@ -577,8 +580,6 @@ async function onDictionaryImport(e) { } }; - const files = [...e.target.files]; - const optionsFull = await apiOptionsGetFull(); const importDetails = { |