MCPcopy
hub / github.com/mailvelope/mailvelope / createContainer

Method createContainer

src/client-API/web-components.js:168–178  ·  view source on GitHub ↗

@private

(id, armored, options)

Source from the content-addressed store, hash-verified

166
167 /** @private */
168 async createContainer(id, armored, options) {
169 try {
170 const {error} = await window.mailvelope.createDisplayContainer(`#${id}`, armored, null, options);
171 if (error) {
172 return this.onError(error);
173 }
174 this.onReady();
175 } catch (e) {
176 this.onError(e);
177 }
178 }
179
180 /** @private */
181 onReady() {

Callers 1

connectedCallbackMethod · 0.95

Calls 3

onErrorMethod · 0.95
onReadyMethod · 0.95

Tested by

no test coverage detected