File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -464,30 +464,30 @@ Save custom data into the cookie. Returns `true` if the data was set successfull
464
464
465
465
```javascript
466
466
// First set: true
467
- CookieConsent.setData ({
467
+ CookieConsent.setCookieData ({
468
468
value: {id: 21, lang: ' it' }
469
469
}); //{id: 21, lang: ' it' }
470
470
471
471
// Change only the ' id' field: true
472
- CookieConsent.setData ({
472
+ CookieConsent.setCookieData ({
473
473
value: {id: 22},
474
474
mode: ' update'
475
475
}); //{id: 22, lang: ' it' }
476
476
477
477
// Add a new field: true
478
- CookieConsent.setData ({
478
+ CookieConsent.setCookieData ({
479
479
value: {newField: ' newValue' },
480
480
mode: ' update'
481
481
}); //{id: 22, lang: ' it' , newField: ' newValue' }
482
482
483
483
// Change ' id' to a string value: FALSE
484
- CookieConsent.setData ({
484
+ CookieConsent.setCookieData ({
485
485
value: {id: ' hello' },
486
486
mode: ' update'
487
487
}); //{id: 22, lang: ' it' , newField: ' newValue' }
488
488
489
489
// Overwrite: true
490
- CookieConsent.setData ({
490
+ CookieConsent.setCookieData ({
491
491
value: ' overwriteEverything'
492
492
}); // ' overwriteEverything'
493
493
```
You can’t perform that action at this time.
0 commit comments