Update 'src/components/timer.vue'

practiced-songs
mahuntington 1 year ago
parent 5241492be5
commit 0fd0d5be7d

@ -171,7 +171,11 @@
},
mounted() {
this.practice_category_id = this.currentWorkingCategory.id
if(window.localStorage.getItem('lastTotalSeconds')){
this.totalSeconds = parseInt(window.localStorage.getItem('lastTotalSeconds'))
} else {
this.totalSeconds = 0
}
this.setManualTime(this.totalSeconds)
this.savedPreviousSeconds = this.totalSeconds
window.onbeforeunload = this.confirmClose

Loading…
Cancel
Save