fix: implement stream playback cleaner structure

This commit is contained in:
talksik
2026-03-18 17:13:41 -07:00
parent 80b21ce58a
commit 69d6ec2ca2
18 changed files with 461 additions and 447 deletions
+7 -4
View File
@@ -44,9 +44,11 @@ class ApiClient {
path: string,
body?: unknown,
): Promise<Response> {
const headers: Record<string, string> = {
"Content-Type": "application/json",
};
const headers: Record<string, string> = {};
if (body) {
headers["Content-Type"] = "application/json";
}
const token = this.config.getToken();
if (token) {
@@ -115,7 +117,8 @@ class ApiClient {
"GET",
`/particles/${objectId}/download`,
);
return response.url;
const data = await response.json();
return data.url;
}
// --- Depot ---