fix(core): update
This commit is contained in:
parent
935bb64306
commit
71a093b706
@ -63,7 +63,7 @@ export class CsWebclient {
|
||||
if (consentTuple.level === 'functional' || acceptedCookieLevels.includes(consentTuple.level)) {
|
||||
const scriptString = consentTuple.script as string;
|
||||
// tslint:disable-next-line: function-constructor
|
||||
const tupleFunction = new Function(`return (${scriptString})()`);
|
||||
const tupleFunction = new Function('dataArg',`return (${scriptString})(dataArg)`);
|
||||
await tupleFunction(consentTuple.scriptExecutionDataArg);
|
||||
console.log (`Successfully executed ConsentTuple >>${consentTuple.name}<< -> ${consentTuple.description}`);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user