Is your feature request related to a problem? Please describe.
Some integrations, such as WP Consent API, expect the allowedCategory(category: string): bool method to exist on the global pressidiumCookieConsent object.
After the migration to v3 (ref: #50), that method has been replaced by:
CookieConsent.acceptedCategory(category)
Describe the solution you'd like
We need to add a backwards-compatible shim for window.pressidiumCookieConsent.allowedCategory() to improve compatibility with third-party integrations.
window.pressidiumCookieConsent.allowedCategory = (category) => (
CookieConsent.acceptedCategory(category)
);
Describe alternatives you've considered
N/A
Checklist
Additional context
N/A
Is your feature request related to a problem? Please describe.
Some integrations, such as WP Consent API, expect the
allowedCategory(category: string): boolmethod to exist on the globalpressidiumCookieConsentobject.After the migration to v3 (ref: #50), that method has been replaced by:
Describe the solution you'd like
We need to add a backwards-compatible shim for
window.pressidiumCookieConsent.allowedCategory()to improve compatibility with third-party integrations.Describe alternatives you've considered
N/A
Checklist
Additional context
N/A