()
| 50 | } |
| 51 | |
| 52 | #checkConnection() { |
| 53 | if (this._port) { |
| 54 | return; |
| 55 | } |
| 56 | const port = chrome.runtime.connect({name: this.#portName}); |
| 57 | this.initPort(port); |
| 58 | this.triggerConnectListener(); |
| 59 | } |
| 60 | |
| 61 | handleRuntimeMessage(msg) { |
| 62 | switch (msg.event) { |
no test coverage detected