aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2017-10-11 19:58:57 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2017-10-11 19:58:57 +0300
commit7783aa4c1a36784b709aba768c17d9476a16a43d (patch)
treee8eb1b3651fa14abbf78490e283c14584e4a62ce /ext
parent4fb983a70cd02c0c0126a26e70d40261d5b2a51d (diff)
reset main dictionary on purge
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/settings.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/bg/js/settings.js b/ext/bg/js/settings.js
index 4d248304..cab9c056 100644
--- a/ext/bg/js/settings.js
+++ b/ext/bg/js/settings.js
@@ -302,6 +302,7 @@ async function onDictionaryPurge(e) {
await utilDatabasePurge();
const options = await optionsLoad();
options.dictionaries = {};
+ options.dictionary.main = '';
await optionsSave(options);
await dictionaryGroupsPopulate(options);