()
| 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}); |
no test coverage detected