From 99bbcbebfc35cfca348860c2ea93e0a54ba2c25c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Mon, 2 May 2016 13:40:14 +0200 Subject: [PATCH] Fix modifiers for ebook format --- lib/output/modifiers/inlineAssets.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/output/modifiers/inlineAssets.js b/lib/output/modifiers/inlineAssets.js index 9f19fd7f2..ee932eb58 100644 --- a/lib/output/modifiers/inlineAssets.js +++ b/lib/output/modifiers/inlineAssets.js @@ -16,11 +16,11 @@ function inlineAssets(rootFolder, currentFile) { // Resolving images and fetching external images should be // done before svg conversion - .then(resolveImages.bind(null, currentFile)) - .then(fetchRemoteImages.bind(null, rootFolder, currentFile)) + .then(resolveImages.bind(null, currentFile, $)) + .then(fetchRemoteImages.bind(null, rootFolder, currentFile, $)) - .then(svgToImg.bind(null, rootFolder, currentFile)) - .then(svgToPng.bind(null, rootFolder, currentFile)); + .then(svgToImg.bind(null, rootFolder, currentFile, $)) + .then(svgToPng.bind(null, rootFolder, currentFile, $)); }; }