Selaa lähdekoodia

fix: cookie block

Ahmad Kholid 3 vuotta sitten
vanhempi
commit
0c86026aa5
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 5 2
      src/background/workflowEngine/blocksHandler/handlerCookie.js

+ 5 - 2
src/background/workflowEngine/blocksHandler/handlerCookie.js

@@ -31,7 +31,7 @@ const keys = {
   ],
 };
 
-async function cookie({ data }) {
+async function cookie({ data, id }) {
   const hasPermission = await browser.permissions.contains({
     permissions: ['cookies'],
   });
@@ -62,7 +62,10 @@ async function cookie({ data }) {
     }
   }
 
-  return result;
+  return {
+    data: result,
+    nextBlockId: this.getBlockConnections(id),
+  };
 }
 
 export default cookie;