Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
4375c6f94f | |||
71a093b706 | |||
935bb64306 | |||
24e8a2d97a |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@consentsoftware/webclient",
|
||||
"version": "1.0.11",
|
||||
"version": "1.0.13",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@consentsoftware/webclient",
|
||||
"version": "1.0.11",
|
||||
"version": "1.0.13",
|
||||
"private": false,
|
||||
"description": "a webclient for using consent.software in your website. Works with vanilla js, angular, react, you name it.",
|
||||
"main": "dist_ts/index.js",
|
||||
|
@ -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}`);
|
||||
}
|
||||
|
Reference in New Issue
Block a user