MCPcopy
hub / github.com/mailvelope/mailvelope / openPopup

Method openPopup

src/controller/import.controller.js:146–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144 }
145
146 openPopup() {
147 return new Promise((resolve, reject) => {
148 this.popupPromise = {resolve, reject};
149 mvelo.windows.openPopup(`components/import-key/importKey.html?id=${this.id}`, {width: 910, height: 554})
150 .then(popup => {
151 this.importPopup = popup;
152 popup.addRemoveListener(() => {
153 this.importPopup = null;
154 this.handleCancel();
155 });
156 });
157 });
158 }
159}
160
161/**

Callers 8

importKeyMethod · 0.95
updateKeyMethod · 0.95
authorizeMethod · 0.80
onDisplayPopupMethod · 0.80
openEditorMethod · 0.80
onDframeDisplayPopupMethod · 0.80
unlockMethod · 0.80

Calls 2

handleCancelMethod · 0.95
addRemoveListenerMethod · 0.80

Tested by

no test coverage detected