Skip to content

Commit

Permalink
chore: Refactor loading of transcript file
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiGaze committed Sep 25, 2024
1 parent d6d98cc commit a6ac4f1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@

// Process the transcript after loading it
if (transcript) {
loadAudioFromJson(transcript);
loadAudioFromLocal(transcript);
}


Expand Down Expand Up @@ -271,9 +271,7 @@
if (!response.ok) {
throw new Error(`Failed to load transcript: ${response.statusText}`);
}
const data = await response.json();
console.log('Transcript loaded:', data);
return data;
return response;
} catch (error) {
console.error('Error loading transcript:', error);
return null;
Expand Down

0 comments on commit a6ac4f1

Please sign in to comment.