Skip to content
This repository has been archived by the owner on May 29, 2018. It is now read-only.

Honor chart.options.exporting.fallbackToExportServer flag. #129

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion export-csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}
}

Expand Down