Skip to content

Commit

Permalink
no json
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Feb 8, 2024
1 parent 02ba383 commit 2002400
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@

<body>
<div id="root"></div>
<script src="source.ccdbf01c.js"></script>
<script src="source.9d2c4293.js"></script>
</body>


Expand Down
9 changes: 0 additions & 9 deletions source/components/PathdbDownloadButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,6 @@ class PathdbDownloadButton extends PureComponent {
}).catch(console.error)
}
}
const blob = new Blob([JSON.stringify(data)], { type: 'application/json' });
const href = URL.createObjectURL(blob);
const link = document.createElement('a');
link.href = href;
link.download = this.props.title || 'download.json';
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
URL.revokeObjectURL(href);
}

render() {
Expand Down

0 comments on commit 2002400

Please sign in to comment.