fix reader page to use the background script as a clipboard source instead of breaking the selection all the time

This commit is contained in:
wareya committed 2017-12-12 19:38:11 -05:00
1 parent f9684b9f9a
commit ca9c532fb1
6 files changed
+66 -32

No files matched your search

+1 -1
View File
@@ -518,7 +518,7 @@ async function lookup_loop()
//console.log("queue not empty");
let lookup = lookup_queue.pop();
lookup_queue = [];
let response = await browser.runtime.sendMessage({type:"search", text:lookup[0], time:Date.now()});
let response = await browser.runtime.sendMessage({type:"search", text:lookup[0], time:Date.now(), divexisted:exists_div()});
if(response)
{
let mydiv = build_div(response.text, response.result);