Skip to content

Commit

Permalink
(refactor) Download tracks as DroneTrack #.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjaffeback committed Aug 22, 2018
1 parent 65b2070 commit d7b2b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/views/home/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class HomeView extends Component {
download = (csvText, trackNumber) => {
const element = document.createElement('a');
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(csvText));
element.setAttribute('download', 'Track ' + trackNumber.toString() + '.txf');
element.setAttribute('download', `DroneTrack ${trackNumber.toString()}.txf`);

element.style.display = 'none';
document.body.appendChild(element);
Expand Down

0 comments on commit d7b2b8c

Please sign in to comment.