Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tweak: add custom event emitter and remove imported class #3

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

craigengland
Copy link
Contributor

Instead of using the EventEmitter class from the npm 'events' package we can use a custom implementation in order to minimise dependencies.

Note: this also updates the place where the cookie banner is inserted on initial page load. After some research it became clear that the original banner should be one of the first things after the <body> tag so that it is easily reachable by keyboard users as well as people utilising a screen reader.

@craigengland craigengland marked this pull request as ready for review October 5, 2021 08:34
@craigengland craigengland merged commit 09e1bb2 into main Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant