(url)
| 1 | const farts = []; |
| 2 | |
| 3 | function newFart(url) { |
| 4 | const fart = new Audio(url); |
| 5 | fart.preservesPitch = false; |
| 6 | fart.onended = () => { |
| 7 | shaking = false; |
| 8 | clickMe.disabled = false; |
| 9 | }; |
| 10 | farts.push(fart); |
| 11 | return fart; |
| 12 | } |
| 13 | |
| 14 | const regularFart = newFart("fart-83471-fixed-regular.flac"); |
| 15 | const critFart = newFart("fart-4-228244-fixed-crit.flac"); |
no outgoing calls
no test coverage detected
searching dependent graphs…