Drop Capa enums

This commit is contained in:
the-djmaze 2022-03-05 22:25:32 +01:00
parent f44507a69b
commit 874f2592ca
14 changed files with 42 additions and 64 deletions

View file

@ -1,4 +1,3 @@
import { Capa } from 'Common/Enums';
import { doc, createElement, SettingsCapa, SettingsGet } from 'Common/Globals';
import { staticLink } from 'Common/Links';
@ -22,7 +21,7 @@ export const
}
init() {
if (SettingsCapa(Capa.OpenPGP) && window.crypto && crypto.getRandomValues) {
if (SettingsCapa('OpenPGP') && window.crypto && crypto.getRandomValues) {
const script = createElement('script', {src:staticLink('js/min/openpgp.min.js')});
script.onload = () => this.loadKeyrings();
script.onerror = () => {
@ -61,7 +60,7 @@ export const
OpenPGPUserStore.loadKeyrings();
}
if (SettingsCapa(Capa.GnuPG)) {
if (SettingsCapa('GnuPG')) {
GnuPGUserStore.loadKeyrings();
}
}