Browse Source

fix: workflow get execute when it disabled

Ahmad Kholid 2 năm trước cách đây
mục cha
commit
630f4d4ac3
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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) {