Browse Source

fix: cookie block

Ahmad Kholid 3 years ago
parent
commit
0c86026aa5
1 changed files with 5 additions and 2 deletions
  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;