diff --git a/ts/index.ts b/ts/index.ts index a2e4e63..4260ec2 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -64,7 +64,7 @@ export class CsWebclient { const scriptString = consentTuple.script as string; // tslint:disable-next-line: function-constructor const tupleFunction = new Function(scriptString); - await tupleFunction(); + await tupleFunction(consentTuple.scriptExecutionDataArg); console.log (`Successfully executed ConsentTuple >>${consentTuple.name}<< -> ${consentTuple.description}`); } }