feat: split contexts, providers and hooks

This commit is contained in:
Pihkaal
2024-05-30 15:55:59 +02:00
parent af5fc8cb35
commit 77f3b3ef40
13 changed files with 51 additions and 41 deletions

View File

@@ -30,9 +30,9 @@ export const Music = () => {
if (metadata) return;
void fetch(song)
.then(r => r.blob())
.then(b => parseBlob(b))
.then(m => {
.then((r) => r.blob())
.then((b) => parseBlob(b))
.then((m) => {
if (!audio.current) return;
setMetadata(m);