mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 12:43:09 -05:00
Fix check for crypto.subtle (#707)
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user