A local-first personal finance app
Fix check for crypto.subtle (#707)
Jed Foxb90da4404c43
diff --git a/packages/desktop-client/src/components/settings/Encryption.js b/packages/desktop-client/src/components/settings/Encryption.jsindex 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 });