aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2017-10-12 01:10:05 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2017-10-12 01:10:05 +0300
commit4e57fa1ad1cd85e18b2ae2c1d43480832533f9a7 (patch)
treefc4e9ed7f7c4e5a4dc9ab202a1b03b66620d8b7a /ext/bg/js/settings.js
parent7783aa4c1a36784b709aba768c17d9476a16a43d (diff)
merged mode: remove options.dictionary.main
Diffstat (limited to 'ext/bg/js/settings.js')
-rw-r--r--ext/bg/js/settings.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/bg/js/settings.js b/ext/bg/js/settings.js
index cab9c056..6016b38a 100644
--- a/ext/bg/js/settings.js
+++ b/ext/bg/js/settings.js
@@ -61,9 +61,6 @@ async function formRead() {
const priority = parseInt(dictionary.find('.dict-priority').val(), 10);
const enabled = dictionary.find('.dict-enabled').prop('checked');
const main = dictionary.find('.dict-main').prop('checked');
- if (main) {
- optionsNew.dictionary.main = title;
- }
optionsNew.dictionaries[title] = {priority, enabled, main};
});
@@ -302,7 +299,6 @@ async function onDictionaryPurge(e) {
await utilDatabasePurge();
const options = await optionsLoad();
options.dictionaries = {};
- options.dictionary.main = '';
await optionsSave(options);
await dictionaryGroupsPopulate(options);