diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-09-22 03:05:50 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-09-22 03:05:50 +0300 |
commit | ebe6930b4ccc68986e58ae48670c98a5bf1a9301 (patch) | |
tree | 74fe3861879a9de46c029ec65cadabfb839fe599 | |
parent | 9e67ed772a05daec160f1bb05977b8f65cf83fd6 (diff) | |
parent | a2919017fce8af0695c38c6f4c4851e6ef211b5e (diff) |
Merge pull request #426 from valeriangalliat/hotfix/append-to-callback-elem
Always pass 'elem' to 'append-to' callback
-rw-r--r-- | lib/append-to.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/append-to.js b/lib/append-to.js index 8976e56..c68e3f9 100644 --- a/lib/append-to.js +++ b/lib/append-to.js @@ -136,7 +136,7 @@ module.exports = function appendTo (file, rootElem, cb) { elem.src = url elem.alt = file.name rootElem.appendChild(elem) - cb(null) + cb(null, elem) }) } @@ -147,7 +147,7 @@ module.exports = function appendTo (file, rootElem, cb) { elem.src = url if (extname !== '.pdf') elem.sandbox = 'allow-forms allow-scripts' rootElem.appendChild(elem) - cb(null) + cb(null, elem) }) } |