(port)
| 14 | |
| 15 | export default class GmailController extends SubController { |
| 16 | constructor(port) { |
| 17 | super(port); |
| 18 | this.state = { |
| 19 | userInfo: null, |
| 20 | threadId: null |
| 21 | }; |
| 22 | this.peerType = 'gmailController'; |
| 23 | this.authorizationRequest = null; |
| 24 | // register event handlers |
| 25 | this.on('open-editor', this.onOpenEditor); |
| 26 | this.on('secure-button', this.onSecureBtn); |
| 27 | } |
| 28 | |
| 29 | activateComponent() { |
| 30 | mvelo.tabs.activate({id: this.tabId}); |