Update 'src/components/timer.vue'

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

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

Loading…
Cancel
Save