Commit 5912ceea authored by Skye Yu's avatar Skye Yu

perf: onreceive callback add file unit8Array data

parent 003227e9
{ {
"name": "jensen", "name": "jensen",
"version": "1.0.0", "version": "1.0.1",
"description": "webUSB Tool", "description": "webUSB Tool",
"scripts": { "scripts": {
"prettier": "prettier --write ." "prettier": "prettier --write ."
......
...@@ -320,7 +320,7 @@ function Jensen(log) { ...@@ -320,7 +320,7 @@ function Jensen(log) {
}, self.timewait); }, self.timewait);
if (self.onreceive) if (self.onreceive)
try { try {
self.onreceive(totalBytes); self.onreceive(totalBytes, result.data);
} catch (e) { } catch (e) {
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment