Skip to content

Plugin bug when using Cookiebot #11

@o-diatlenko

Description

@o-diatlenko

Due to GDPR, I'm using a Сookiebot (https://www.cookiebot.com/).

And I noticed the strange behavior of the Odoo website top menu. I mean the default panel with a Sign-in button, Home button, Contact Us button.

When the OdooDebug plugin is installed and the user sees the Cookibot consent window, the menu disappears.

I did some research and it turned out that the problem is here:

// contentScript.js
...
scriptEl.onload = () => scriptEl.parentNode.removeChild(scriptEl);

The script removing breaks the loading of other scripts.
Same result if I change the src of the script.
Also, adding the defer argument doesn't help (by default, the dynamic script is async).

The only way to fix this (so far) is not to delete the script.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions