(error)
| 103 | } |
| 104 | |
| 105 | async encryptError(error) { |
| 106 | if (error.code == 'EDITOR_DIALOG_CANCEL') { |
| 107 | await this.removePeer('editorController'); |
| 108 | return; |
| 109 | } |
| 110 | this.peers.editorController.ports.editor.emit('error-message', { |
| 111 | error: Object.assign(mapError(error), { |
| 112 | autoHide: false, |
| 113 | dismissable: false |
| 114 | }) |
| 115 | }); |
| 116 | } |
| 117 | |
| 118 | async onSecureBtn({type, msgId, all, userInfo}) { |
| 119 | try { |
no test coverage detected