just in case
This commit is contained in:
1 parent
04a1523837
commit
5c67ab53cd
1 file changed
+20
-11
+20
-11
@@ -1355,18 +1355,27 @@ async function send_lookup(lookup, time)
|
|||||||
if(!settings.kanji_mode)
|
if(!settings.kanji_mode)
|
||||||
{
|
{
|
||||||
currently_looking_up = true;
|
currently_looking_up = true;
|
||||||
let response = await browser.runtime.sendMessage(
|
let response = undefined;
|
||||||
|
try
|
||||||
{
|
{
|
||||||
type:"search",
|
response = await browser.runtime.sendMessage(
|
||||||
text:lookup[0],
|
{
|
||||||
time:my_time,
|
type:"search",
|
||||||
divexisted:exists_div(),
|
text:lookup[0],
|
||||||
settings:{
|
time:my_time,
|
||||||
alternatives_mode:settings.alternatives_mode,
|
divexisted:exists_div(),
|
||||||
strict_alternatives:settings.strict_alternatives,
|
settings:{
|
||||||
strict_epwing:settings.strict_epwing
|
alternatives_mode:settings.alternatives_mode,
|
||||||
}
|
strict_alternatives:settings.strict_alternatives,
|
||||||
});
|
strict_epwing:settings.strict_epwing
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
catch(e)
|
||||||
|
{
|
||||||
|
currently_looking_up = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
currently_looking_up = false;
|
currently_looking_up = false;
|
||||||
if(response)
|
if(response)
|
||||||
response = response["response"];
|
response = response["response"];
|
||||||
|
|||||||
Reference in new issue
Block a user