From e4caa6f9f3fbff79f0193e59bc6642e3eeb33876 Mon Sep 17 00:00:00 2001 From: Trent DiBacco Date: Thu, 13 Apr 2017 11:19:12 -0700 Subject: [PATCH 1/2] Honor chart.options.exporting.fallbackToExportServer flag. --- export-csv.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/export-csv.js b/export-csv.js index ac7c574..6e7547c 100644 --- a/export-csv.js +++ b/export-csv.js @@ -292,13 +292,15 @@ a.click(); a.remove(); - } else { + } else if (chart.options.exporting.fallbackToExportServer){ // Fall back to server side handling Highcharts.post(url, { data: content, type: MIME, extension: extension }); + } else { + console.log("Error: 'chart.options.exporting.fallbackToExportServer' not enabled.") } } From 050abdbf572f79d811d3e49eefaf7578c0082a38 Mon Sep 17 00:00:00 2001 From: Trent DiBacco Date: Wed, 26 Apr 2017 16:16:19 -0700 Subject: [PATCH 2/2] Update check of chart.options.exporting.fallbackToExportServer flag to strict test in case it is not set. --- export-csv.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/export-csv.js b/export-csv.js index 6e7547c..ca1bb65 100644 --- a/export-csv.js +++ b/export-csv.js @@ -292,7 +292,7 @@ a.click(); a.remove(); - } else if (chart.options.exporting.fallbackToExportServer){ + } else if (chart.options.exporting.fallbackToExportServer !== false){ // Fall back to server side handling Highcharts.post(url, { data: content,