Skip to content

Commit

Permalink
Create tab object on tab create (#1552)
Browse files Browse the repository at this point in the history
* Create tab object on tab create to fix dashboard issue.
  • Loading branch information
jonathanKingston committed Nov 23, 2022
1 parent b2daa68 commit 6a6d830
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shared/js/background/events.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,12 @@ browser.webNavigation.onBeforeNavigate.addListener(details => {

const Companies = require('./companies.es6')

browser.tabs.onCreated.addListener((info) => {
if (info.id) {
tabManager.createOrUpdateTab(info.id, info)
}
})

browser.tabs.onUpdated.addListener((id, info) => {
// sync company data to storage when a tab finishes loading
if (info.status === 'complete') {
Expand Down

0 comments on commit 6a6d830

Please sign in to comment.