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

Method getPopup

src/controller/decrypt.controller.js:61–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 }
60
61 async getPopup() {
62 if (this.popup) {
63 return this.popup;
64 }
65 if (this.state.popupId) {
66 try {
67 this.popup = await mvelo.windows.getPopup(this.state.popupId, this.state.popupOpenerTabId);
68 this.popup.addRemoveListener(() => this.dialogCancel());
69 return this.popup;
70 } catch (e) {
71 this.setState({popupId: null, popupOpenerTabId: null});
72 }
73 }
74 }
75
76 async onDframeDisplayPopup() {
77 this.popup = await mvelo.windows.openPopup(`components/decrypt-message/decryptMessage.html?id=${this.id}&embedded=false`, {width: 742, height: 550});

Callers 5

onDecryptMessageInitMethod · 0.95
onSetArmoredMethod · 0.95
dialogCancelMethod · 0.95
unlockKeyMethod · 0.95
beforePasswordRequestMethod · 0.95

Calls 3

dialogCancelMethod · 0.95
addRemoveListenerMethod · 0.80
setStateMethod · 0.45

Tested by

no test coverage detected