diff --git a/packages/desktop-client/src/components/settings/Encryption.js b/packages/desktop-client/src/components/settings/Encryption.js index b20ec99c50..1d5d6a6e91 100644 --- a/packages/desktop-client/src/components/settings/Encryption.js +++ b/packages/desktop-client/src/components/settings/Encryption.js @@ -9,9 +9,7 @@ import { Setting } from './UI'; export default function EncryptionSettings({ prefs, pushModal }) { const serverURL = useServerURL(); - const missingCryptoAPI = !( - window.crypto && Object.hasOwnProperty.call(crypto, 'subtle') - ); + const missingCryptoAPI = !(window.crypto && crypto.subtle); function onChangeKey() { pushModal('create-encryption-key', { recreate: true });