summaryrefslogtreecommitdiff
path: root/ext/js/language
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-09-26 11:08:25 -0400
committerGitHub <noreply@github.com>2021-09-26 11:08:25 -0400
commit6694a9d9c3a6770ee744310056cadd3567386f3f (patch)
tree1ff0d9c57a4c6931171f897e102c2092981d0bc3 /ext/js/language
parentc15683d206c3bcfbaa1fa81f1c57836a34974e83 (diff)
Enable frequency dictionaries to specify the frequency mode (#1944)
Diffstat (limited to 'ext/js/language')
-rw-r--r--ext/js/language/dictionary-importer.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/js/language/dictionary-importer.js b/ext/js/language/dictionary-importer.js
index 0a10900d..ad5d7a70 100644
--- a/ext/js/language/dictionary-importer.js
+++ b/ext/js/language/dictionary-importer.js
@@ -201,11 +201,12 @@ class DictionaryImporter {
importDate: Date.now()
};
- const {author, url, description, attribution} = index;
+ const {author, url, description, attribution, frequencyMode} = index;
if (typeof author === 'string') { summary.author = author; }
if (typeof url === 'string') { summary.url = url; }
if (typeof description === 'string') { summary.description = description; }
if (typeof attribution === 'string') { summary.attribution = attribution; }
+ if (typeof frequencyMode === 'string') { summary.frequencyMode = frequencyMode; }
Object.assign(summary, details);