From 779ee9a92ef1a6d2c46010cd4564c46f12d69e92 Mon Sep 17 00:00:00 2001 From: RemiSaurel Date: Wed, 24 Aug 2022 09:26:55 +0200 Subject: [PATCH] title updating with timer --- src/components/Pomodoro.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Pomodoro.vue b/src/components/Pomodoro.vue index f76a80a..2f612a2 100644 --- a/src/components/Pomodoro.vue +++ b/src/components/Pomodoro.vue @@ -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(); - } + }, }