diff options
Diffstat (limited to 'extension')
-rw-r--r-- | extension/background.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extension/background.js b/extension/background.js index 7851b22..179a2b8 100644 --- a/extension/background.js +++ b/extension/background.js @@ -650,7 +650,7 @@ async function onMessage(req) { // timeout is very useful because some operations just hang // (like trying to take a screenshot, until the tab is focused) didTimeout = true; console.error('timeout'); - port.postMessage({ op: req.op, error: unix.ETIMEDOUT }); + port.postMessage({ id: req.id, op: req.op, error: unix.ETIMEDOUT }); }, 1000); /* console.time(req.op + ':' + req.path);*/ @@ -672,6 +672,7 @@ async function onMessage(req) { clearTimeout(timeout); console.log('resp', response); + response.id = req.id; port.postMessage(response); } }; |