Show VM screenshot

This commit is contained in:
2023-10-18 10:23:40 +02:00
parent 62364594c9
commit 3042bbdac6
7 changed files with 82 additions and 4 deletions

View File

@ -103,6 +103,7 @@ export class APIClient {
});
// Process response
// JSON response
if (res.headers.get("content-type") === "application/json")
data = await res.json();
// Binary file
@ -146,7 +147,7 @@ export class APIClient {
data = await resInt.blob();
}
// Do not track progress
// Do not track progress (binary file)
else data = await res.blob();
status = res.status;