eyecatchup/vue-cookieconsent

Cookie Banner is not showing.

Closed this issue · 1 comments

Hey Guys,

ive set up the plugin in my app.js (in vue3). In the console there seems like it works und starts initializing but no Cookie Banner is showing. The html source code is not changing too. How to fix?

ok i fix it.
You should run this in your app.js too:

window.addEventListener('load', function () {
    // obtain cookieconsent plugin
    var cookieconsent = initCookieConsent();

    // run plugin with config object
    cookieconsent.run(consentOptions);
});