aboutsummaryrefslogtreecommitdiff
path: root/src/timer.js
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2025-11-15 19:12:25 +0100
committerKaran Jayachandra <mail@karanjayachandra.com>2025-11-15 19:12:25 +0100
commit7cec8794b6616d294b6a0e8aab3b9d8b1dcdb6db (patch)
treeb5283f089aa89fbe577f899b65e9db2661c8a9db /src/timer.js
parentc0c4897f2ef9eb9ae444bc05407c3cdf420c3461 (diff)
Added the change to Pico CSS
Diffstat (limited to 'src/timer.js')
-rw-r--r--src/timer.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/timer.js b/src/timer.js
index c00ffdc..9b0a8b9 100644
--- a/src/timer.js
+++ b/src/timer.js
@@ -1,3 +1,5 @@
+import { Notyf } from "notyf";
+
const milliSecond = 1000;
export class Timer {
@@ -42,7 +44,12 @@ export class Timer {
return;
}
p.reset();
- getNotifier().error("Round completed");
+ const n = new Notyf({
+ duration: 0,
+ position: { x: "center", y: "top" },
+ dismissible: true,
+ });
+ n.error("Round completed");
}
start(fresh) {
if (fresh) {