Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

Commit

Permalink
Set audio to null when saving changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wuzi committed Sep 17, 2018
1 parent 6ede773 commit 5bd4d80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/renderer/components/LandingPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@
this.$refs.keyPressed.innerHTML = 'Press a key'
},
saveChanges () {
localStorage.setItem('sounds', JSON.stringify(this.tableData))
var sounds = this.tableData.map(sound => {
return Object.assign({audio: null}, sound)
})
localStorage.setItem('sounds', JSON.stringify(sounds))
}
},
created () {
Expand Down

0 comments on commit 5bd4d80

Please sign in to comment.