MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / init

Method init

src/content-scripts/encryptFrame.js:42–47  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

40 }
41
42 init(element) {
43 this.editElement = element;
44 // set status to attached
45 this.editElement.dataset[FRAME_STATUS] = FRAME_ATTACHED;
46 this.emailTextElement = this.editElement.tagName.toLowerCase() === 'iframe' ? this.editElement.contentDocument.body : this.editElement;
47 }
48
49 establishConnection() {
50 this.port = EventHandler.connect(`eFrame-${this.id}`, this);

Callers 1

attachToMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected