Fix service reject issue & setCookieData() method deletes lastConsentTimestamp field
Fixes #700
The retrieveState method of api.js currently sets the _enabledServices before _acceptedServices so the enabled services don't include services read from the cc-cookie. I think reversing this order is sufficient to fix it.
Fixes #702
The setCookieData() method can accidentally delete the lastConsentTimestamp field from the cc-cookie.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| cookieconsent-docs | ⬜️ Ignored (Inspect) | Visit Preview | Jun 27, 2024 11:39am |
Deploy Preview for cookieconsentv3-playground canceled.
| Name | Link |
|---|---|
| Latest commit | 8785e5050611fb8e6f2c9abb17f40ee2c3af119b |
| Latest deploy log | https://app.netlify.com/sites/cookieconsentv3-playground/deploys/667d4f6d765e06000835d070 |
I think this also fixes #696 which is the same as #700
Came across the same issue of lastConsentTimestamp not being set (basically was getting deleted) and spent a lot of time debugging 🙈
Thanks for your contribution!