(armored)
| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected