feat: add base codec info to player

This commit is contained in:
Lei Nelissen
2024-07-25 16:58:22 +02:00
parent 189491b90a
commit 92c82b9f0a
11 changed files with 126 additions and 10 deletions

View File

@@ -15,6 +15,9 @@ function generateConfig(credentials: Credentials): RequestInit {
};
}
/**
* Retrieve a copy of the store without getting caught in import cycles.
*/
export function asyncFetchStore() {
return require('@/store').default as Store;
}
@@ -74,7 +77,7 @@ export async function fetchApi<T>(
const data = await response.json();
throw data;
} catch {
throw response;
throw new Error('FailedRequest');
}
}