This method is deprecated.
Deprecated. This method will continue to work, but a newer version is available. Use the resetConsentPolicy() method instead.
If this method is already in your code, it will continue to work.
To stay compatible with future changes, migrate to resetConsentPolicy().
To migrate to the new method:
Add the new import statement:
If you plan to migrate all methods that use resetConsentPolicy(),
remove the original import { consentPolicy } from "wix-window-frontend"; statement.
Look for any code that uses consentPolicy.resetConsentPolicy(),
and replace it with the new import.
Update your code to work with the new resetConsentPolicy()
call and response properties.
Test your changes to make sure your code behaves as expected.
Note: Check the new method documentation for any differences in parameters, return values, or behavior compared to the deprecated resetConsentPolicy() method.
Removes the current policy from the site visitor's browser and resets the site visitor's consent policy to the default policy for the site.