From 9ca292736a5f9a18aa5ce93cd8e70019f72cf5d2 Mon Sep 17 00:00:00 2001 From: kabir-afk Date: Thu, 20 Jun 2024 00:04:12 +0530 Subject: [PATCH] chore : removed log messages --- sw.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sw.js b/sw.js index 8260491..a71ac8d 100644 --- a/sw.js +++ b/sw.js @@ -773,7 +773,7 @@ const WAIT_ALARM = 'waitWhileLoading'; async function createAlarm() { await chrome.alarms.create(WAIT_ALARM, { periodInMinutes: 1 / 60 // by specifying it as fraction we can run the ⏰ in every 1 second - },()=>console.log('⏰ running inside createAlarm()',new Date().getSeconds())); + }); } chrome.runtime.onMessage.addListener((message, sender, sendResponse) => { @@ -788,9 +788,7 @@ chrome.alarms.onAlarm.addListener((alarm)=>{ if (alarm.name === WAIT_ALARM) { if (state === 'ready') { chrome.runtime.sendMessage({state:'ready'}); - chrome.alarms.clear(WAIT_ALARM,()=>{ - console.log('⏰ stopped at ',new Date().getSeconds()); - }); + chrome.alarms.clear(WAIT_ALARM); } } }) \ No newline at end of file