mirror of
https://github.com/loro-dev/loro.git
synced 2025-02-11 06:42:21 +00:00
fix: nodejs patch
This commit is contained in:
parent
331dc6c994
commit
5c0d8b74f4
1 changed files with 4 additions and 1 deletions
|
@ -1,2 +1,5 @@
|
|||
const { webcrypto } = require("crypto");
|
||||
globalThis.crypto = webcrypto;
|
||||
Object.defineProperty(globalThis, 'crypto', {
|
||||
value: webcrypto,
|
||||
writable: true
|
||||
});
|
Loading…
Reference in a new issue