Explorar o código

fix: "When visit web" trigger not working

Ahmad Kholid %!s(int64=3) %!d(string=hai) anos
pai
achega
ed698c6208
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/background/index.js

+ 1 - 1
src/background/index.js

@@ -155,7 +155,7 @@ async function checkVisitWebTriggers(tabId, tabUrl) {
 
     const matchUrl = tabUrl.match(isRegex ? new RegExp(url, 'g') : url);
 
-    return matchUrl && id !== workflowState.workflowId;
+    return matchUrl && id !== workflowState?.workflowId;
   });
 
   if (triggeredWorkflow) {