diff --git a/cli/export-png.js b/cli/export-png.js index 9ea50ac..64f45c9 100644 --- a/cli/export-png.js +++ b/cli/export-png.js @@ -115,7 +115,7 @@ function onPageExit(page, options, data) { if (options.dataUri) { const dataUriPath = options.dest + '.datauri'; - const dataUri = `data:image/png;base64,${page.renderBase64('PNG')}`; + const dataUri = 'data:image/png;base64,' + page.renderBase64('PNG'); // Write data-uri to file fs.write(dataUriPath, dataUri, 'w');