Skip to content

Commit

Permalink
Merge pull request #15 from tagconcierge/bugfix/trigger-ready-event-o…
Browse files Browse the repository at this point in the history
…n-window

Bugfix/trigger ready event on window
  • Loading branch information
mfrankiewicz committed May 14, 2024
2 parents 6b0e54c + 6233872 commit e7741c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tagconcierge/consent-banner",
"version": "1.2.0",
"version": "1.2.1",
"description": "A zero-dependency, lightweight (~3kB), consent platform agnostic, cookie banner for any website.",
"main": "src/app.js",
"keywords": ["consent banner", "consent mode", "gtm consent", "cookie banner"],
Expand Down
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,4 +407,4 @@ window.cookiesBannerJs = function(overrideLoadConsentState, overrideSaveConsentS
ready(consentBannerJsMain.bind(null, config));
}

dispatchBodyEvent('ready');
window.dispatchEvent(new CustomEvent('consent-banner.ready'));

0 comments on commit e7741c9

Please sign in to comment.