From c8b1f296fc2d6e5662aeace134096e42224cae1c Mon Sep 17 00:00:00 2001 From: wareya Date: Mon, 13 May 2019 20:08:12 -0400 Subject: [PATCH] fix some exceptions --- background-script.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/background-script.js b/background-script.js index 161e623..47e2c4c 100644 --- a/background-script.js +++ b/background-script.js @@ -901,20 +901,20 @@ function add_json_info(lookups, other_settings) } else { - let possibilities = json_lookup_kana_exact(foundtext); + let possibilities = json_lookup_kana_exact(dict, foundtext); if(!other_settings.strict_epwing) { for(let reading of entry.r_ele) { if(possibilities.length == 0) - possibilities = json_lookup_kana_exact(reading.reb); + possibilities = json_lookup_kana_exact(dict, reading.reb); } if(possibilities.length == 0) - possibilities = json_lookup_kana_inexact(foundtext); + possibilities = json_lookup_kana_inexact(dict, foundtext); for(let reading of entry.r_ele) { if(possibilities.length == 0) - possibilities = json_lookup_kana_inexact(reading.reb); + possibilities = json_lookup_kana_inexact(dict, reading.reb); } } if(possibilities.length > 0)