Skip to content

Commit

Permalink
Fix limit bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepzh authored Feb 23, 2023
1 parent f96eaa0 commit 9714391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/limit-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function handleLimitChanged() {
const tabs = await listTabs()
tabs.forEach(tab => {
const limitedItems = allItems.filter(item => item.matches(tab.url) && item.enabled && item.hasLimited())
limitedItems?.length && sendMsg2Tab(tab?.id, 'limitChanged', limitedItems)
sendMsg2Tab(tab?.id, 'limitChanged', limitedItems)
.catch(err => console.log(err.message))
})
}
Expand Down Expand Up @@ -134,4 +134,4 @@ class LimitService {
}
}

export default new LimitService()
export default new LimitService()

0 comments on commit 9714391

Please sign in to comment.