Skip to content

Commit

Permalink
Prevent unnecessary XHR when clicking on "Compare" link
Browse files Browse the repository at this point in the history
  • Loading branch information
luk1337 committed Dec 29, 2023
1 parent ab820ff commit 7613638
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/downloadable/DownloadableDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ export default {
value: String
},
methods: {
compareSha256() {
compareSha256(event) {
event.preventDefault()
const input = this.$refs.input
input.onchange = () => {
const fileReader = new FileReader()
Expand Down

0 comments on commit 7613638

Please sign in to comment.