1
0
mirror of https://github.com/dkmstr/openuds-gui.git synced 2025-03-11 04:58:21 +03:00

Remove redundant cookie consent status change logging and make revokable option commented

This commit is contained in:
Adolfo Gómez García 2024-11-19 23:09:43 +01:00
parent 507e3bd9d9
commit d479358f83
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -45,18 +45,6 @@ export class AppComponent implements OnInit {
// Initialize cookie consent
cookieconsent.initialise({
onStatusChange: (status: string, chosenBefore: boolean) => {
console.log('cookieconsent.onStatusChange', status, chosenBefore);
console.log('This: ', this);
console.log('CookieConsent: ', cookieconsent);
if (cookieconsent.hasConsented()) {
console.log('enable cookies');
} else {
alert('We need cookies to work, you will be redirected to an outside page');
window.location.href = 'https://www.cookiesandyou.com';
}
console.log(cookieconsent.hasConsented() ? 'enable cookies' : 'disable cookies');
},
palette: {
popup: {
background: '#343c66',
@ -70,7 +58,7 @@ export class AppComponent implements OnInit {
layout: 'basic',
position: 'bottom-right',
theme: 'classic',
revokable: true,
//revokable: true,
type: 'info',
content: {
message: message,