Browse Source

fix: active tab block delay

Ahmad Kholid 2 years ago
parent
commit
ddc730f4e1
2 changed files with 0 additions and 4 deletions
  1. 0 2
      src/background/index.js
  2. 0 2
      src/workflowEngine/blocksHandler/handlerActiveTab.js

+ 0 - 2
src/background/index.js

@@ -115,8 +115,6 @@ message.on('workflow:execute', async (workflowData, sender) => {
   const isMV2 = browser.runtime.getManifest().manifest_version === 2;
   if (!isMV2 && (!context || context === 'popup')) {
     await BackgroundUtils.openDashboard('', false);
-    await sleep(1000);
-    console.log('halo', workflowData);
     await BackgroundUtils.sendMessageToDashboard('workflow:execute', {
       data: workflowData,
       options: workflowData.option,

+ 0 - 2
src/workflowEngine/blocksHandler/handlerActiveTab.js

@@ -44,8 +44,6 @@ async function activeTab(block) {
       }
     }
 
-    await sleep(500);
-
     const [tab] = await browser.tabs.query({
       active: true,
       lastFocusedWindow: true,