diff options
-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) }) } |