fix(extension): support UUID generation on insecure origins

This commit is contained in:
Dean Wang committed 2026-09-01 10:30:40 +08:00
1 parent f06a514bd2
commit 3c77ef7b01
5 files changed
+62 -3

No files matched your search

@@ -1,3 +1,4 @@
import { createRandomUuid } from "../random-uuid";
import {
isRecordFrameQueryMessage,
RECORD_FRAME_PORT,
@@ -188,7 +189,7 @@ export class RecordFrameCoordinator {
const recording = this.#recordings.get(requestId);
if (!recording) return true;
recording.finishing = true;
const commandId = crypto.randomUUID();
const commandId = createRandomUuid();
const results = await Promise.all(
[...recording.agents.values()].map((agent) => this.#stopAgent(agent, requestId, commandId)),
);