Forráskód Böngészése

fix: workflow get execute when it disabled

Ahmad Kholid 2 éve
szülő
commit
630f4d4ac3
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      src/background/index.js

+ 2 - 1
src/background/index.js

@@ -256,7 +256,8 @@ async function checkVisitWebTriggers(tabId, tabUrl) {
     }
 
     const workflowData = await workflow.get(workflowId);
-    if (workflowData) workflow.execute(workflowData, { tabId });
+    if (workflowData && !workflow.isDisabled)
+      workflow.execute(workflowData, { tabId });
   }
 }
 async function checkRecordingWorkflow(tabId, tabUrl) {