OFFLINE-GmbH / oc-gdpr-plugin

October CMS plugin to make websites GDPR and ePrivacy compliant
https://octobercms.com/plugin/offline-gdpr
MIT License
36 stars 20 forks source link

.remove unsupported on IE11 #71

Closed wordshop-git closed 4 years ago

wordshop-git commented 4 years ago

The cookiebanner buttons are using .remove and on IE this isn't supported so you can't close/ accept the cookie banner

This issue maybe elsewhere in the plugin as well but we've only spotted it on the cookie banner

Andi-Moser commented 4 years ago

Hi,

We do not support IE11, however you can either overwrite the partials yourself or use this IE11 polyfill:

    // Create Element.remove() function if not exist
    if (!('remove' in Element.prototype)) {
        Element.prototype.remove = function() {
            if (this.parentNode) {
                this.parentNode.removeChild(this);
            }
        };
    }

I hope this helps!