aboutsummaryrefslogtreecommitdiff
path: root/src/timer.js
diff options
context:
space:
mode:
authorKaran Jayachandra <me@karanj.com>2025-11-16 16:18:48 +0100
committerKaran Jayachandra <me@karanj.com>2025-11-16 16:18:48 +0100
commit34ad81f7aeaa44437ea6f42ac9159d6a8612ad6c (patch)
treefcfc212a79e3e34b0e0bdfcc4cca7fb05f65123e /src/timer.js
parent63c405504466bdadb64dfb3017bbfa942d7330f3 (diff)
parent2e323bf7c20cc59a8d2017517b14d615344c5863 (diff)
Merge branch 'develop' into 'main'
Develop See merge request KaranJayachandra/match_up!23
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) {