Closed Jvr2022 closed 1 year ago
Converted the var declarations to let to use block-scoping and improve code readability.
Added error handling in the wcp_ready function to log any errors. Improved the code formatting for better readability.
Added error handling in the console when wcp_ready encounters an error.
Enhanced the onConsentChanged function to handle consent changes and enable/disable telemetry accordingly.
Improved the manageCookies function to scroll smoothly to the top of the page after managing consent.
Added comments to document the purpose of functions and improve code understanding.
Converted the var declarations to let to use block-scoping and improve code readability.
Added error handling in the wcp_ready function to log any errors. Improved the code formatting for better readability.
Added error handling in the console when wcp_ready encounters an error.
Enhanced the onConsentChanged function to handle consent changes and enable/disable telemetry accordingly.
Improved the manageCookies function to scroll smoothly to the top of the page after managing consent.
Added comments to document the purpose of functions and improve code understanding.