(action, tabId)
| 98 | |
| 99 | // - action: "register" or "unregister". |
| 100 | handleAction(action, tabId) { |
| 101 | if (action == "register") { |
| 102 | this.register(tabId); |
| 103 | } else if (action == "deregister") { |
| 104 | this.deregister(tabId); |
| 105 | } else { |
| 106 | throw new Error(`Unexpected action type: ${action}`); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | register(tabId) { |
| 111 | this.counter++; |
no test coverage detected