(msg)
| 51 | } |
| 52 | |
| 53 | handleError(msg) { |
| 54 | if (msg.error.code !== 'PWD_DIALOG_CANCEL') { |
| 55 | this.setState({error: new Error(l10n.map.keybackup_failed)}); |
| 56 | } |
| 57 | this.setState({waiting: false}); |
| 58 | } |
| 59 | |
| 60 | terminate() { |
| 61 | this.setState({terminate: true}, () => this.port.disconnect()); |