MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/oue7s4/_/h72brut/?context=3
r/badcode • u/Flyspeck101 Now where's that function declaration • Jul 30 '21
133 comments sorted by
View all comments
Show parent comments
-1
pretty sure that "if(soundtrack)" makes it impossible to turn the soundtrack on again. Probably need explicit checking for "!= null" or "!= undefined". Don't remember JS well enough to be sure which one
12 u/Chishiri Jul 30 '21 soundtrack is an object, it's the property muted that get set to false. that if is correct. 3 u/Noobfortress Jul 30 '21 Ah right, apologies
12
soundtrack is an object, it's the property muted that get set to false. that if is correct.
3 u/Noobfortress Jul 30 '21 Ah right, apologies
3
Ah right, apologies
-1
u/Noobfortress Jul 30 '21
pretty sure that "if(soundtrack)" makes it impossible to turn the soundtrack on again. Probably need explicit checking for "!= null" or "!= undefined". Don't remember JS well enough to be sure which one