just in case

This commit is contained in:
wareya committed 2019-06-30 05:16:09 -04:00
1 parent 04a1523837
commit 5c67ab53cd
1 file changed
+10 -1
+10 -1
View File
@@ -1355,7 +1355,10 @@ async function send_lookup(lookup, time)
if(!settings.kanji_mode)
{
currently_looking_up = true;
let response = await browser.runtime.sendMessage(
let response = undefined;
try
{
response = await browser.runtime.sendMessage(
{
type:"search",
text:lookup[0],
@@ -1367,6 +1370,12 @@ async function send_lookup(lookup, time)
strict_epwing:settings.strict_epwing
}
});
}
catch(e)
{
currently_looking_up = false;
return;
}
currently_looking_up = false;
if(response)
response = response["response"];