diff --git a/src/app/shared/cookies/browser-klaro.service.ts b/src/app/shared/cookies/browser-klaro.service.ts index 1b445855d3..4e6370f179 100644 --- a/src/app/shared/cookies/browser-klaro.service.ts +++ b/src/app/shared/cookies/browser-klaro.service.ts @@ -78,7 +78,7 @@ export class BrowserKlaroService extends KlaroService { } /** - * Add all message keys for apps and purposes + * Add all message keys for services and purposes */ this.addAppMessages(); @@ -88,8 +88,7 @@ export class BrowserKlaroService extends KlaroService { * Show the configuration if the configuration has not been confirmed */ this.translateConfiguration(); - Klaro.renderKlaro(this.klaroConfig, false); - Klaro.initialize(); + Klaro.setup(this.klaroConfig); }); } @@ -161,10 +160,10 @@ export class BrowserKlaroService extends KlaroService { } /** - * Add message keys for all apps and purposes + * Add message keys for all services and purposes */ addAppMessages() { - this.klaroConfig.apps.forEach((app) => { + this.klaroConfig.services.forEach((app) => { this.klaroConfig.translations.en[app.name] = { title: this.getTitleTranslation(app.name), description: this.getDescriptionTranslation(app.name) }; app.purposes.forEach((purpose) => { this.klaroConfig.translations.en.purposes[purpose] = this.getPurposeTranslation(purpose); diff --git a/src/app/shared/cookies/klaro-configuration.ts b/src/app/shared/cookies/klaro-configuration.ts index f57146c674..1c87e46309 100644 --- a/src/app/shared/cookies/klaro-configuration.ts +++ b/src/app/shared/cookies/klaro-configuration.ts @@ -30,8 +30,8 @@ export const klaroConfiguration: any = { /* Setting 'acceptAll' to 'true' will show an "accept all" button in the notice and - modal, which will enable all third-party apps if the user clicks on it. If set - to 'false', there will be an "accept" button that will only enable the apps that + modal, which will enable all third-party services if the user clicks on it. If set + to 'false', there will be an "accept" button that will only enable the services that are enabled in the consent modal. */ acceptAll: true, @@ -84,7 +84,7 @@ export const klaroConfiguration: any = { purposes: {} } }, - apps: [ + services: [ { name: 'authentication', purposes: ['functional'], @@ -120,7 +120,7 @@ export const klaroConfiguration: any = { // /* // you an either only provide a cookie name or regular expression (regex) or a list // consisting of a name or regex, a path and a cookie domain. Providing a path and - // domain is necessary if you have apps that set cookies for a path that is not + // domain is necessary if you have services that set cookies for a path that is not // "/", or a domain that is not the current domain. If you do not set these values // properly, the cookie can't be deleted by Klaro, as there is no way to access the // path or domain of a cookie in JS. Notice that it is not possible to delete