diff options
author | Marius David Wieschollek <passwords.public@mdns.eu> | 2021-01-10 19:54:04 +0300 |
---|---|---|
committer | Marius David Wieschollek <passwords.public@mdns.eu> | 2021-01-10 19:54:04 +0300 |
commit | 7f40cba4501c4b065bd2b894f2416c54e63e7f76 (patch) | |
tree | 93976b6178390fbe2ae907b0496d72ff324dbfc3 /src/js | |
parent | 0fde3c11ac71da755a27a56dd417d8f57f997c8b (diff) | |
parent | 21bbfaa182fe99d620d417b87dff2d7fd8db65e9 (diff) |
Merge branch '2.0.1'
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/Manager/TabManager.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/js/Manager/TabManager.js b/src/js/Manager/TabManager.js index c26a2f9..919db28 100644 --- a/src/js/Manager/TabManager.js +++ b/src/js/Manager/TabManager.js @@ -54,6 +54,9 @@ class TabManager { this._api.tabs.onUpdated.addListener(this._updatedEvent); this._api.tabs.onReplaced.addListener(this._refreshEvent); this._api.tabs.onHighlighted.addListener(this._refreshEvent); + this._api.windows.onCreated.addListener(this._refreshEvent); + this._api.windows.onRemoved.addListener(this._refreshEvent); + this._api.windows.onFocusChanged.addListener(this._refreshEvent); this._updateTabInfo().catch(ErrorManager.catch()); } @@ -151,6 +154,7 @@ class TabManager { async _updateTabInfo(tab) { if(!tab) tab = await this._getCurrentTab(); if(!tab || !tab.active) return; + console.log(tab); let tabId = tab.id; if(!this._tabs.hasOwnProperty(tabId)) { |