Explorar o código

fix: workflow get execute when it disabled

Ahmad Kholid %!s(int64=2) %!d(string=hai) anos
pai
achega
630f4d4ac3
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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) {