Skip to content

Commit 3e6b4ff

Browse files
authored
Update alarmclock.js
1 parent 51598ae commit 3e6b4ff

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎Sprint-3/alarmclock/alarmclock.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function setAlarm() {
2020

2121
if (inputSeconds <= 0) {
2222
clearInterval(timer);
23-
playAlarm();
23+
window.playAlarm();
2424
}
2525
}, 1000);
2626
}
@@ -50,6 +50,8 @@ function playAlarm() {
5050
audio.play();
5151
}
5252

53+
window.playAlarm = playAlarm;
54+
5355
function pauseAlarm() {
5456
audio.pause();
5557
}

0 commit comments

Comments
 (0)