Skip to content

Commit

Permalink
fix filename
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikvedvik committed Feb 12, 2024
1 parent 20c5958 commit c25c689
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/transcription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export function downloadTranscription(segments: Segment[], filename: string) {
const url = URL.createObjectURL(blob);
const a = document.createElement("a");
a.href = url;
filename = filename.split(".").slice(0, -1).join(".");
a.download = filename + "-edited.json";
a.click();
URL.revokeObjectURL(url);
Expand Down

0 comments on commit c25c689

Please sign in to comment.