From 97143918fa3e7a74fde4cb058f332f2ea06bad0d Mon Sep 17 00:00:00 2001 From: ZHY Date: Thu, 23 Feb 2023 20:12:27 +0800 Subject: [PATCH] Fix limit bugs --- src/service/limit-service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()