Skip to content

Commit e4528e2

Browse files
Update js/turtle-singer.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2bd2ea9 commit e4528e2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

js/turtle-singer.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2204,8 +2204,12 @@ class Singer {
22042204
if (notes.length > 0) {
22052205
const stopBtn = document.getElementById("stop");
22062206
if (stopBtn) {
2207-
stopBtn.style.display = "inline-block";
2208-
stopBtn.style.color = "#ea174c";
2207+
if (stopBtn.style.display !== "inline-block") {
2208+
stopBtn.style.display = "inline-block";
2209+
}
2210+
if (stopBtn.style.color !== "#ea174c") {
2211+
stopBtn.style.color = "#ea174c";
2212+
}
22092213
}
22102214
const len = notes[0].length;
22112215
if (typeof notes[0] === "number") {

0 commit comments

Comments
 (0)