Skip to content

Commit

Permalink
issue #141 - execute inject action when cs-inject is used
Browse files Browse the repository at this point in the history
  • Loading branch information
Manvel committed Mar 29, 2024
1 parent 46a9be9 commit e5cf45a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/js/cs/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ async function executeAction(recordRow, request)
window.location = input1;
break;
}
case "cs-inject":
case "inject": {
// TODO: Remove when moved to MV3 is complete.
const clipboardId = "grabClipboardHere";
Expand All @@ -102,10 +103,10 @@ async function executeAction(recordRow, request)
}
break;
}
case "cs-inject": {
await eval(`(async () => {${input1}})()`);
break;
}
// case "cs-inject": {
// await eval(`(async () => {${input1}})()`);
// break;
// }
case "copy": {
const targetElement = document.querySelector(input1);
if(targetElement) {
Expand Down

0 comments on commit e5cf45a

Please sign in to comment.