Skip to content
Snippets Groups Projects
Unverified Commit b90da440 authored by Jed Fox's avatar Jed Fox Committed by GitHub
Browse files

Fix check for crypto.subtle (#707)

parent 18eae3eb
No related branches found
No related tags found
No related merge requests found
......@@ -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 });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment