Skip to content

Commit

Permalink
docs: update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
wfk007 committed Jan 13, 2025
1 parent cf667a3 commit 69694be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wavesurfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export type WaveSurferOptions = {
/** Nonce for CSP if necessary */
cspNonce?: string
/** Override the Blob MIME type */
mimeType?: string
blobMimeType?: string
}

const defaultOptions = {
Expand Down Expand Up @@ -437,9 +437,9 @@ class WaveSurfer extends Player<WaveSurferEvents> {
}
const onProgress = (percentage: number) => this.emit('loading', percentage)
blob = await Fetcher.fetchBlob(url, onProgress, fetchParams)
const overridedMimeType = this.options.mimeType
if (overridedMimeType) {
blob = new Blob([blob], { type: overridedMimeType })
const overridenMimeType = this.options.blobMimeType
if (overridenMimeType) {
blob = new Blob([blob], { type: overridenMimeType })
}
}

Expand Down

0 comments on commit 69694be

Please sign in to comment.