Don't assume subtleCrypto exists if there's a window
Don't assume subtleCrypto exists if there's a window

Jest has a window object but doesn't have subtleCrypto

matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk