Skip to content

Commit 08ec320

Browse files
committed
feat: response object on file download
1 parent 5b8f20e commit 08ec320

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

www/helpers.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,10 @@ module.exports = function init(global, jsUtil, cookieHandler, messages, base64,
343343

344344
function injectFileEntryHandler(cb) {
345345
return function (response) {
346-
cb(createFileEntry(response.file));
346+
var fileEntry = createFileEntry(response.file);
347+
// optional: delete response.file;
348+
response.data = fileEntry;
349+
cb(fileEntry, response);
347350
}
348351
}
349352

0 commit comments

Comments
 (0)