mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): fix fade in on first audioplay (#57758)
This commit is contained in:
@@ -49,8 +49,10 @@ export function Scene({
|
||||
const { current } = audioRef;
|
||||
|
||||
if (current) {
|
||||
current.volume = 1;
|
||||
current.addEventListener('canplaythrough', audioLoaded);
|
||||
current.src = `${sounds}/${audio.filename}${audioTimestamp}`;
|
||||
current.preload = 'auto';
|
||||
current.load();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user