diff --git a/README.md b/README.md index bf6045ba..7c2a83d8 100644 --- a/README.md +++ b/README.md @@ -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(); diff --git a/lib/highcharts.js b/lib/highcharts.js index e82a2213..5e4b1df6 100644 --- a/lib/highcharts.js +++ b/lib/highcharts.js @@ -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);