|
|
|
@ -171,7 +171,11 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
this.practice_category_id = this.currentWorkingCategory.id
|
|
|
|
this.practice_category_id = this.currentWorkingCategory.id
|
|
|
|
|
|
|
|
if(window.localStorage.getItem('lastTotalSeconds')){
|
|
|
|
this.totalSeconds = parseInt(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
|
|
|
|
|