Skip to content

Commit

Permalink
Merge pull request #234 from rgantzos/main
Browse files Browse the repository at this point in the history
Fix pause audio
  • Loading branch information
rgantzos authored Oct 26, 2022
2 parents 007fc8c + 048494b commit a98d0c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/pause-audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if (window.location.href.startsWith("https://scratch.mit.edu/projects/")) {
btn3.appendChild(img2);
btn.parentNode.appendChild(btn3);
function callback() {
if (btn.title === "Play") {
if (btn.firstChild.src === "https://scratch.mit.edu/static/assets/b5257afbe4bcf7953029ddb8f18b24fe.svg") {
btn2.style.opacity = "0.5";
} else {
btn2.style.opacity = "1";
Expand Down

0 comments on commit a98d0c9

Please sign in to comment.