diff --git a/packages/pg/lib/crypto/utils-webcrypto.js b/packages/pg/lib/crypto/utils-webcrypto.js index 0433f010c..90b3b9a18 100644 --- a/packages/pg/lib/crypto/utils-webcrypto.js +++ b/packages/pg/lib/crypto/utils-webcrypto.js @@ -13,7 +13,7 @@ module.exports = { * The Web Crypto API - grabbed from the Node.js library or the global * @type Crypto */ -const webCrypto = nodeCrypto.webcrypto || globalThis.crypto +const webCrypto = globalThis.crypto ?? nodeCrypto.webcrypto /** * The SubtleCrypto API for low level crypto operations. * @type SubtleCrypto