From 8b7415954c4d23fe1bb5b6b6c5b8f90a601f5ef0 Mon Sep 17 00:00:00 2001 From: Mistral Vibe Date: Wed, 8 Apr 2026 21:17:43 +0200 Subject: [PATCH] fix(audio): fresh media element per song to avoid AbortError on switch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When WaveSurfer.destroy() is called it aborts its internal fetch AbortController. If the same HTMLAudioElement is immediately passed to a new WaveSurfer instance, the aborted signal is still draining — the new instance's loadAudio call sees it and throws AbortError: signal is aborted without reason. Fix: create a new