Skip to content

Commit a53559e

Browse files
shakyShaneShane Osbourne
andauthored
fix: randomUUID is absent in none-secure contexts (#1254)
Co-authored-by: Shane Osbourne <[email protected]>
1 parent 389144d commit a53559e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

injected/src/captured-globals.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ export const Promise = globalThis.Promise;
2323
export const String = globalThis.String;
2424
export const Map = globalThis.Map;
2525
export const Error = globalThis.Error;
26-
export const randomUUID = globalThis.crypto?.randomUUID.bind(globalThis.crypto);
26+
export const randomUUID = globalThis.crypto?.randomUUID?.bind(globalThis.crypto);

0 commit comments

Comments
 (0)