Browse Source

fix: multiple block line not working

Ahmad Kholid 2 years ago
parent
commit
fd33461a77
3 changed files with 4 additions and 3 deletions
  1. 1 1
      package.json
  2. 2 1
      src/newtab/workflowEngine/WorkflowWorker.js
  3. 1 1
      webpack.config.js

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "automa",
-  "version": "1.21.6",
+  "version": "1.22.0",
   "description": "An extension for automating your browser by connecting blocks",
   "repository": {
     "type": "git",

+ 2 - 1
src/newtab/workflowEngine/WorkflowWorker.js

@@ -1,4 +1,5 @@
 import browser from 'webextension-polyfill';
+import cloneDeep from 'lodash.clonedeep';
 import {
   toCamelCase,
   sleep,
@@ -109,7 +110,7 @@ class WorkflowWorker {
           ...execParam,
         });
       } else {
-        const state = structuredClone({
+        const state = cloneDeep({
           windowId: this.windowId,
           loopList: this.loopList,
           activeTab: this.activeTab,

+ 1 - 1
webpack.config.js

@@ -14,7 +14,7 @@ const ASSET_PATH = process.env.ASSET_PATH || '/';
 const alias = {
   '@': path.resolve(__dirname, 'src/'),
   secrets: path.join(__dirname, 'secrets.blank.js'),
-  '@business': path.resolve(__dirname, 'business/dev'),
+  '@business': path.resolve(__dirname, 'business/prod'),
 };
 
 // load the secrets