Skip to content

Commit 7ded280

Browse files
committed
removed pauseAlarm from stop alarm function
1 parent bffd4b4 commit 7ded280

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Sprint-3/alarmclock/alarmclock.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11

22

3-
// function setAlarm() {}
3+
44

55
let timeLeft = 0;
66
let timer = null;
77
let flashing = null;
88

99
// DOM references
1010
window.addEventListener("DOMContentLoaded", () => {
11-
// const display = document.getElementById("timeRemaining");
11+
1212
const setButton = document.getElementById("set");
1313
const stopButton = document.getElementById("stop");
1414

1515
// Event listeners
16-
// if (setButton) setButton.addEventListener("click", () => playAlarm());
16+
1717
if (stopButton) stopButton.addEventListener("click", stopAlarm);
1818

1919
// Show 00:00 on load
@@ -86,7 +86,6 @@ function startAlarm() {
8686
}
8787

8888
function stopAlarm() {
89-
if (typeof pauseAlarm === "function") pauseAlarm();
9089

9190
clearInterval(flashing);
9291
flashing = null;

0 commit comments

Comments
 (0)