klaro-js icon indicating copy to clipboard operation
klaro-js copied to clipboard

[Win 8.1/IE11] Consent reset via Manager does not work

Open saitho opened this issue 5 years ago • 3 comments

Steps to reproduce

We add a link for resetting consents on our page like so:

<a data-resetconsent="1">Reset consent</a>

Which triggers the following JavaScript:

$('[data-resetconsent=1]').on('click', (e) => {
  e.preventDefault();
  window.klaro.getManager().resetConsents();
  location.reload();
});

Current behavior

In IE11 on Windows 8.1 the following error occurs:

syntax-error

IE11 on Windows 10 seems to be fine.

Expected behavior

The Klaro cookie is resetted correctly.

saitho avatar Nov 20 '20 15:11 saitho

Hi @saitho! Thanks for reporting this, I don't have a Windows 8.1 development environment to debug this unfortunately, we can only test IE support via IE11 and its emulation of older versions.

Can you possible try to run this with a developer version of Klaro? You'd need to run the Klaro development server and load Klaro from there. That version is not minified and easier to debug.

adewes avatar Nov 26 '20 10:11 adewes

I don't have a Windows 8.1 development environment to debug this unfortunately, we can only test IE support via IE11 and its emulation of older versions.

Hi @adewes,

Microsoft offers free Virtual Machines for various Windows versions for that: https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/

saitho avatar Nov 26 '20 12:11 saitho

Sure, we can look into that! BTW, if your organization can afford it please consider buying a Klaro Company/Agency subscription (https://kiprotect.com/klaro/prices), this helps us to work on more issues with priority and secure the development of the OS version as well. Thanks!

adewes avatar Nov 26 '20 12:11 adewes