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

Method create

src/content-scripts/decryptContainer.js:22–36  ·  view source on GitHub ↗
(armored)

Source from the content-addressed store, hash-verified

20 }
21
22 create(armored) {
23 return new Promise((resolve, reject) => {
24 this.createPromise = {resolve, reject};
25 this.armored = armored;
26 this.parent = document.querySelector(this.selector);
27 this.container = document.createElement('iframe');
28 const url = chrome.runtime.getURL(`components/decrypt-message/decryptMessage.html?id=${this.id}&embedded=true`);
29 this.container.setAttribute('src', url);
30 this.container.setAttribute('frameBorder', 0);
31 this.container.setAttribute('scrolling', 'no');
32 this.container.style.width = '100%';
33 this.container.style.height = '100%';
34 this.parent.appendChild(this.container);
35 });
36 }
37
38 registerEventListener() {
39 this.port.on('destroy', this.onDestroy);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected