feat: add decryption to key press action

This commit is contained in:
RohitR311
2024-12-04 16:55:42 +05:30
parent e4abddc9db
commit f9b8f36ff7

View File

@@ -14,7 +14,7 @@ function decryptWorkflow(workflow: WorkflowFile): WorkflowFile {
decryptedWorkflow.workflow.forEach((pair) => {
pair.what.forEach((action) => {
if (action.action === 'type' && Array.isArray(action.args) && action.args.length > 1) {
if ((action.action === 'type' || action.action === 'press') && Array.isArray(action.args) && action.args.length > 1) {
try {
const encryptedValue = action.args[1];
if (typeof encryptedValue === 'string') {