Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/wavesurfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -675,9 +675,9 @@ class WaveSurfer extends Player<WaveSurferEvents> {
}

/** Unmount wavesurfer */
Comment thread
CarrettaRiccardo marked this conversation as resolved.
Outdated
public destroy() {
public destroy(message?: string) {
this.emit('destroy')
this.abortController?.abort()
this.abortController?.abort(message)
this.plugins.forEach((plugin) => plugin.destroy())
this.subscriptions.forEach((unsubscribe) => unsubscribe())
this.unsubscribePlayerEvents()
Expand Down
Loading