(port)
| 13 | |
| 14 | export class SubController extends EventHandler { |
| 15 | constructor(port) { |
| 16 | super(port); |
| 17 | this.ports = {}; |
| 18 | this.peers = {}; |
| 19 | if (port) { |
| 20 | this.initMainPort(port); |
| 21 | } |
| 22 | this.on('open-security-settings', this.openSecuritySettings); |
| 23 | this.on('get-security-background', this.getSecurityBackground); |
| 24 | this.on('security-background-update', this.updateSecurityBackground); |
| 25 | } |
| 26 | |
| 27 | initMainPort(port, eventCache) { |
| 28 | const sender = parseViewName(port.name); |
nothing calls this directly
no test coverage detected