remove timestamp property

This commit is contained in:
Simon Knott 2024-09-09 16:43:51 +02:00
parent 909a47cdbf
commit daaba42b6a
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -27,7 +27,6 @@ export type SnapshotData = {
}[],
viewport: { width: number, height: number },
url: string,
timestamp: number,
absoluteTimestamp: number, // milliseconds since epoch
collectionTime: number,
};
@ -573,7 +572,6 @@ export function frameSnapshotStreamer(snapshotStreamer: string, removeNoScript:
height: window.innerHeight,
},
url: location.href,
timestamp,
absoluteTimestamp: Date.now(),
collectionTime: 0,
};
@ -591,7 +589,7 @@ export function frameSnapshotStreamer(snapshotStreamer: string, removeNoScript:
result.resourceOverrides.push({ url, content, contentType: 'text/css' },);
}
result.collectionTime = performance.now() - result.timestamp;
result.collectionTime = performance.now() - timestamp;
return result;
}
}