react-file-download
Advanced tools
Comparing version
@@ -9,8 +9,8 @@ var React = require('react'); | ||
} else { | ||
var csvURL = window.URL.createObjectURL(blob); | ||
var tempLink = document.createElement('a'); | ||
tempLink.href = csvURL; | ||
tempLink.setAttribute('download', filename); | ||
tempLink.click(); | ||
var csvURL = window.URL.createObjectURL(blob); | ||
var tempLink = document.createElement('a'); | ||
tempLink.href = csvURL; | ||
tempLink.setAttribute('download', filename); | ||
tempLink.click(); | ||
} | ||
} | ||
} |
{ | ||
"name": "react-file-download", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "React component that trigger browser to save javascript-generated content to a file", | ||
@@ -5,0 +5,0 @@ "main": "file-download.js", |
3150
0.77%7160
-7.92%