fix: also loading peaks

feat/type-attributes
Tomáš Mládek 2022-10-23 11:32:01 +02:00
parent e21c29cb02
commit 65a20824a8
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@
});
try {
const peaksReq = await fetch(`${API_URL}/thumb/${address}?type=json`);
const peaksReq = await fetch(`${API_URL}/thumb/${address}?mime=audio&type=json`);
const peaks = await peaksReq.json();
wavesurfer.load(`${API_URL}/raw/${address}`, peaks.data);
} catch (e) {