From db7e17962651c268227bc52bd32e3e5c515e4a19 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 15 Dec 2019 15:51:30 -0500 Subject: Clear files after getting the value --- ext/bg/js/settings/dictionaries.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ext') 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 = { -- cgit v1.2.3