summaryrefslogtreecommitdiff
path: root/ext/bg/js/dictionary.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/dictionary.js')
-rw-r--r--ext/bg/js/dictionary.js20
1 files changed, 2 insertions, 18 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js
index 073b8f55..f312796d 100644
--- a/ext/bg/js/dictionary.js
+++ b/ext/bg/js/dictionary.js
@@ -44,29 +44,13 @@ class Dictionary {
results = results.concat(
indices.map(index => {
const [e, r, t, ...g] = dict.d[index];
- const tags = t.split(' ');
-
- //
- // TODO: Handle addons through data.
- //
-
- const addons = [];
- for (let tag of tags) {
- if (tag.startsWith('v5') && tag !== 'v5') {
- addons.push('v5');
- } else if (tag.startsWith('vs-')) {
- addons.push('vs');
- }
- }
-
return {
- id: index,
expression: e,
reading: r,
+ tags: t.split(' '),
glossary: g,
- tags: tags.concat(addons),
entities: dict.e,
- addons: addons
+ id: index
};
})
);