aboutsummaryrefslogtreecommitdiff
path: root/src/timer.js
diff options
context:
space:
mode:
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) {