• Hello,

    After pressing “Accept all” some things stop working (after 2 seconds):
    1. Search button on the sticked to the right bar.
    2. Menu humburger on mobile.

    I noticed that it gets fixed if I comment “dispatch” stroke in file complianz-gdpr/assets/js/complianz.js

    function cmplzRunAfterAllScripts() {
       console.log('cmplzRunAfterAllScripts');
       if (!cmplzAllScriptsHookFired && cmplzArrayIsEmpty(waitingInlineScripts) && cmplzArrayIsEmpty(waitingScripts) ) {
          var event = new CustomEvent( 'cmplzRunAfterAllScripts' );
    //      document.dispatchEvent(event);
          cmplzAllScriptsHookFired = true;
       }
    }

    It seems like some js code evaluates twice after accepting cookies.

    Any ideas how I can fix this?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @evnomad,

    I noticed that you had disabled Complianz on this site, so I couldn’t see the behavior in action. I expect that it might’ve been related to the plugin blocking certain JavaScript related to these elements.

    If you re-enable the plugin, I’d be glad to have a closer look at this.

    Just let me know if that would be desired.
    Kind regards,
    Jarno

Viewing 1 replies (of 1 total)

The topic ‘Plugin breaks some scripts’ is closed to new replies.