mirror of
https://github.com/LucasVbr/own-workspace.git
synced 2026-05-13 17:21:58 +00:00
title updating with timer
This commit is contained in:
@@ -194,11 +194,16 @@ export default {
|
|||||||
if (this.seconds < 10) {
|
if (this.seconds < 10) {
|
||||||
this.seconds = "0" + this.seconds;
|
this.seconds = "0" + this.seconds;
|
||||||
}
|
}
|
||||||
|
if (this.isRestingTime) {
|
||||||
|
document.title = "PAUSE 👏 " + this.minutes + ":" + this.seconds;
|
||||||
|
} else {
|
||||||
|
document.title = "WORKING 🍅 " + this.minutes + ":" + this.seconds;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.prettyTime();
|
this.prettyTime();
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user