diff --git a/extension/src/crypto-polyfill.ts b/extension/src/crypto-polyfill.ts index 3b90fde6..912ef7a7 100644 --- a/extension/src/crypto-polyfill.ts +++ b/extension/src/crypto-polyfill.ts @@ -1,7 +1,7 @@ import * as crypto from 'crypto' -if (!globalThis.crypto) { +if (globalThis.crypto == null) { Object.defineProperty(globalThis, 'crypto', { - value: crypto, + value: crypto }) -} \ No newline at end of file +}