瀏覽代碼

fix: active tab block delay

Ahmad Kholid 2 年之前
父節點
當前提交
ddc730f4e1
共有 2 個文件被更改,包括 0 次插入4 次删除
  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;
   const isMV2 = browser.runtime.getManifest().manifest_version === 2;
   if (!isMV2 && (!context || context === 'popup')) {
   if (!isMV2 && (!context || context === 'popup')) {
     await BackgroundUtils.openDashboard('', false);
     await BackgroundUtils.openDashboard('', false);
-    await sleep(1000);
-    console.log('halo', workflowData);
     await BackgroundUtils.sendMessageToDashboard('workflow:execute', {
     await BackgroundUtils.sendMessageToDashboard('workflow:execute', {
       data: workflowData,
       data: workflowData,
       options: workflowData.option,
       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({
     const [tab] = await browser.tabs.query({
       active: true,
       active: true,
       lastFocusedWindow: true,
       lastFocusedWindow: true,