Skip to content

Commit

Permalink
Merge pull request #512 from highcharts/bugfix/486-batch-svg-export
Browse files Browse the repository at this point in the history
bugfix/486-batch-svg-export
  • Loading branch information
PaulDalek authored Apr 9, 2024
2 parents f1a4cab + bbe4e9e commit 5cc4d44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ export const batchExport = async (options) => {
// Save the base64 from a buffer to a correct image file
writeFileSync(
info.options.export.outfile,
Buffer.from(info.result, 'base64')
info.options.export.type !== 'svg'
? Buffer.from(info.result, 'base64')
: info.result
);
}
)
Expand Down

0 comments on commit 5cc4d44

Please sign in to comment.