title updating with timer

This commit is contained in:
RemiSaurel
2022-08-24 09:26:55 +02:00
parent f6f958566e
commit 779ee9a92e
+6 -1
View File
@@ -194,11 +194,16 @@ export default {
if (this.seconds < 10) {
this.seconds = "0" + this.seconds;
}
if (this.isRestingTime) {
document.title = "PAUSE 👏 " + this.minutes + ":" + this.seconds;
} else {
document.title = "WORKING 🍅 " + this.minutes + ":" + this.seconds;
}
}
},
created() {
this.prettyTime();
}
},
}
</script>