diff --git a/src/service/limit-service.ts b/src/service/limit-service.ts index f4d980e5..ae40032f 100644 --- a/src/service/limit-service.ts +++ b/src/service/limit-service.ts @@ -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)) }) } @@ -134,4 +134,4 @@ class LimitService { } } -export default new LimitService() \ No newline at end of file +export default new LimitService()