MCPcopy
hub / github.com/mailvelope/mailvelope / init

Method init

src/modules/keyring.js:25–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 */
24class KeyringAttrMap extends Map {
25 async init() {
26 const attributes = await mvelo.storage.get('mvelo.keyring.attributes') || {};
27 Object.keys(attributes).forEach(key => super.set(key, attributes[key]));
28 if (!this.has(MAIN_KEYRING_ID)) {
29 await this.create(MAIN_KEYRING_ID);
30 }
31 }
32
33 async initGPG() {
34 const hasGpgKeyring = this.has(GNUPG_KEYRING_ID);

Callers 1

initFunction · 0.45

Calls 4

createMethod · 0.95
getMethod · 0.45
setMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected