Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
c6b75f9236 | |||
9157d51471 | |||
0dc496d22a | |||
5f2350a9e7 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@consentsoftware/webclient",
|
"name": "@consentsoftware/webclient",
|
||||||
"version": "1.0.8",
|
"version": "1.0.10",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@consentsoftware/webclient",
|
"name": "@consentsoftware/webclient",
|
||||||
"version": "1.0.8",
|
"version": "1.0.10",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a webclient for using consent.software in your website. Works with vanilla js, angular, react, you name it.",
|
"description": "a webclient for using consent.software in your website. Works with vanilla js, angular, react, you name it.",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -29,7 +29,7 @@ export class CsWebclient {
|
|||||||
plugins.csInterfaces.IWebclientSettings['acceptedCookieLevels']
|
plugins.csInterfaces.IWebclientSettings['acceptedCookieLevels']
|
||||||
> {
|
> {
|
||||||
const result = await this.webstore.get('acceptedCookieLevels');
|
const result = await this.webstore.get('acceptedCookieLevels');
|
||||||
return result.acceptedCookieLevels;
|
return result?.acceptedCookieLevels;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async isCookieLevelStillValid(): Promise<boolean> {
|
public async isCookieLevelStillValid(): Promise<boolean> {
|
||||||
@ -64,7 +64,7 @@ export class CsWebclient {
|
|||||||
const scriptString = consentTuple.script as string;
|
const scriptString = consentTuple.script as string;
|
||||||
// tslint:disable-next-line: function-constructor
|
// tslint:disable-next-line: function-constructor
|
||||||
const tupleFunction = new Function(scriptString);
|
const tupleFunction = new Function(scriptString);
|
||||||
await tupleFunction();
|
await tupleFunction(consentTuple.scriptExecutionDataArg);
|
||||||
console.log (`Successfully executed ConsentTuple >>${consentTuple.name}<< -> ${consentTuple.description}`);
|
console.log (`Successfully executed ConsentTuple >>${consentTuple.name}<< -> ${consentTuple.description}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user