aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/options.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-31 21:10:20 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-31 21:10:20 -0800
commitbed16022e08a2877f16ae0971c0e7c4605724258 (patch)
treec6544b0820571678300e1230e6797bb724738cfd /ext/bg/js/options.js
parentbf9925ec9cabd5a755152aa89df1f87e38d53534 (diff)
fix dictionary priority visibility bug1.0.7
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r--ext/bg/js/options.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index ca2792c0..863e8916 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -98,22 +98,6 @@ function optionsVersion(options) {
copy(options.anki.kanji, 'model', options, 'ankiKanjiModel');
copy(options.anki.kanji, 'fields', options, 'ankiKanjiFields');
- const fixupFields = fields => {
- const fixups = {
- '{expression-furigana}': '{furigana}',
- '{glossary-list}': '{glossary}'
- };
-
- for (const name in fields) {
- for (const fixup in fixups) {
- fields[name] = fields[name].replace(fixup, fixups[fixup]);
- }
- }
- };
-
- fixupFields(options.anki.terms.fields);
- fixupFields(options.anki.kanji.fields);
-
for (const title in options.dictionaries) {
const dictionary = options.dictionaries[title];
dictionary.enabled = dictionary.enableTerms || dictionary.enableKanji;