Skip to content

Commit

Permalink
Small corrections, touch #563.
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulDalek committed Aug 6, 2024
1 parent 8ba67b9 commit 97ab0ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ const options = {
// Perform an export
await exporter.startExport(exportSettings, async (error, info) => {
// The export result is now in info
// It will be base64 encoded (info.data)
// It will be base64 encoded (info.result)
// Kill the pool when we are done with it
await exporter.killPool();
Expand Down
2 changes: 1 addition & 1 deletion lib/highcharts.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export async function triggerExport(chartOptions, options, displayErrors) {
const userOptions = options.export.strInj
? new Function(`return ${options.export.strInj}`)()
: chartOptions;

// Trigger custom code
if (options.customLogic.customCode) {
new Function('options', options.customLogic.customCode)(userOptions);
Expand Down

0 comments on commit 97ab0ca

Please sign in to comment.