(key)
| 14 | realms[id] = realm; |
| 15 | }, |
| 16 | async TabClose(key) { |
| 17 | await bridge[REIFY]; |
| 18 | const id = tabIds[key]; |
| 19 | // !key => close current tab |
| 20 | // id => close tab by id |
| 21 | if (!key || id) sendCmd('TabClose', { id }); |
| 22 | }, |
| 23 | }); |
| 24 | |
| 25 | addBackgroundHandlers({ |