Browse Source

fix: context menu variables empty

Ahmad Kholid 2 years ago
parent
commit
4df05a75c8
2 changed files with 3 additions and 2 deletions
  1. 1 0
      src/content/index.js
  2. 2 2
      src/newtab/App.vue

+ 1 - 0
src/content/index.js

@@ -263,6 +263,7 @@ function messageListener({ data, source }) {
               $ctxElSelector,
               $ctxTextSelection,
             });
+            console.log(cloneContextData);
 
             $ctxLink = '';
             $ctxMediaUrl = '';

+ 2 - 2
src/newtab/App.vue

@@ -230,8 +230,8 @@ const messageEvents = {
         });
     }
   },
-  'workflow:execute': function ({ data }) {
-    startWorkflowExec(data, data?.options ?? {});
+  'workflow:execute': function ({ data, options }) {
+    startWorkflowExec(data, options ?? data?.options ?? {});
   },
   'recording:stop': stopRecording,
   'background--recording:stop': stopRecording,