(port)
| 12 | |
| 13 | export default class VerifyController extends SubController { |
| 14 | constructor(port) { |
| 15 | super(port); |
| 16 | this.verifyPopup = null; |
| 17 | this.armored = null; |
| 18 | // register event handlers |
| 19 | this.on('decrypt-message-init', this.onVerifyInit); |
| 20 | this.on('decrypt-message', () => this.onArmoredMessage({data: this.armored})); |
| 21 | this.on('decrypt-dialog-cancel', this.onCancel); |
| 22 | this.on('decrypt-inline-user-input', msg => uiLog.push(msg.source, msg.type)); |
| 23 | this.on('vframe-display-popup', this.onDisplayPopup); |
| 24 | this.on('vframe-armored-message', this.onArmoredMessage); |
| 25 | } |
| 26 | |
| 27 | async onVerifyInit() { |
| 28 | this.keyringId = await getPreferredKeyringId(); |
nothing calls this directly
no test coverage detected