Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Evert-R committed Oct 24, 2023
1 parent 5e27c56 commit 4988e4d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/components/Preload/Preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ const Preload = ({ instruction, pageTitle, duration, sections, playConfig, onNex
if (index === 0) {
webAudio.clearBuffers();
}

// Load sections in buffer
// Return remove listener

// Load sections in buffer
return webAudio.loadBuffer(section.id, MEDIA_ROOT + section.url, () => {
if (index === (sections.length - 1)) {
audioIsAvailable.current = true;
Expand Down

0 comments on commit 4988e4d

Please sign in to comment.