summaryrefslogtreecommitdiff
path: root/ext/bg/js/util.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-03-05 16:27:29 -0800
committerAlex Yatskov <alex@foosoft.net>2017-03-05 16:27:29 -0800
commit44d7ad5a8ba612c1d704383f871967f1915235f3 (patch)
tree3b4cf59bb794f2ce67a82e518be0da0f363e2384 /ext/bg/js/util.js
parent0a75e14d93b6a5121b333fe0510d3f7aa34ffa5a (diff)
firefox fixes
Diffstat (limited to 'ext/bg/js/util.js')
-rw-r--r--ext/bg/js/util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index e847090f..7f031040 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -251,8 +251,8 @@ function dictEnabled(options) {
function dictRowsSort(rows, options) {
return rows.sort((ra, rb) => {
- const pa = options.dictionaries[ra.title].priority || 0;
- const pb = options.dictionaries[rb.title].priority || 0;
+ const pa = (options.dictionaries[ra.title] || {}).priority || 0;
+ const pb = (options.dictionaries[rb.title] || {}).priority || 0;
if (pa > pb) {
return -1;
} else if (pa < pb) {