MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / createKeyGenContainer

Method createKeyGenContainer

src/client-API/client-api.js:388–390  ·  view source on GitHub ↗

* Creates an iframe to display the key generation container. * The iframe will be injected into the container identified by selector. * @param {CssSelector} selector - target container * @param {KeyGenContainerOptions} options * @returns {Promise. } * @throws {Error}

(selector, options)

Source from the content-addressed store, hash-verified

386 * @throws {Error} error.code = 'INPUT_NOT_VALID'
387 */
388 createKeyGenContainer(selector, options) {
389 return send('key-gen-container', {selector, identifier: this.identifier, options}).then(generatorId => new Generator(generatorId));
390 }
391
392 /**
393 * @typedef {Object} KeyBackupContainerOptions

Callers

nothing calls this directly

Calls 1

sendFunction · 0.70

Tested by

no test coverage detected