This commit is contained in:
Simon Knott 2024-10-31 13:14:36 +01:00
parent 6e37ea1423
commit 9b4f719f5c
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -87,7 +87,7 @@ export class FetchTraceModelBackend implements TraceModelBackend {
constructor(traceURL: string) {
this._traceURL = traceURL;
this._entriesPromise = fetch(traceURL).then(async response => {
const json = JSON.parse(await response.text());
const json = await response.json();
const entries = new Map<string, string>();
for (const entry of json.entries)
entries.set(entry.name, entry.path);