diff options
Diffstat (limited to 'ext/bg')
-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 = { |