Skip to content

Commit

Permalink
Minor code cleaning.
Browse files Browse the repository at this point in the history
  • Loading branch information
jszuminski committed Apr 8, 2024
1 parent 2a307ee commit c6fe183
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ export const startExport = async (settings, endCallback) => {
log(4, '[chart] Attempting to export from a SVG input.');

const result = exportAsString(
sanitize(options.payload.svg.trim()),
sanitize(options.payload.svg), // #209
options,
endCallback
);

++stats.exportFromSvgAttempts;
return result;
} catch (error) {
Expand Down

0 comments on commit c6fe183

Please sign in to comment.