aboutsummaryrefslogtreecommitdiffstats
path: root/extension
diff options
context:
space:
mode:
Diffstat (limited to 'extension')
-rw-r--r--extension/background.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/extension/background.js b/extension/background.js
index 1b1cad0..370e106 100644
--- a/extension/background.js
+++ b/extension/background.js
@@ -632,7 +632,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);*/
@@ -654,6 +654,7 @@ async function onMessage(req) {
clearTimeout(timeout);
console.log('resp', response);
+ response.id = req.id;
port.postMessage(response);
}
};