aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/util.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-08 11:18:55 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-08 11:18:55 -0800
commitd7b4aa681c4ade5fe2bf838b3f7c6e44737e8ab1 (patch)
treefd7d8f63ace566f46f521344d583bd7a1ab991f0 /ext/bg/js/util.js
parenta5efe5032247162e2a88554d39110ae1270544a8 (diff)
fixing dictionary tags
Diffstat (limited to 'ext/bg/js/util.js')
-rw-r--r--ext/bg/js/util.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index 059f3160..1212fa44 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -113,6 +113,10 @@ function undupeTermDefs(definitions) {
return definitionsUnique;
}
+function buildDictTag(name) {
+ return sanitizeTag({name, category: 'dictionary', order: 100});
+}
+
function buildTag(name, meta) {
const tag = {name};
const symbol = name.split(':')[0];