Skip to content

Commit

Permalink
solve SSR issues on csv export
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Mar 26, 2016
1 parent f6171fa commit d46ca49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/csv_export_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
/* eslint vars-on-top: 0 */
/* eslint no-var: 0 */
/* eslint no-unused-vars: 0 */
if (typeof window !== 'undefined') {
import Util from './util';

if (Util.canUseDOM()) {
const filesaver = require('./filesaver');
var saveAs = filesaver.saveAs;
}
Expand Down

0 comments on commit d46ca49

Please sign in to comment.