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

Feature Reopen cookie notice #50

Merged

Conversation

andreasblumberg
Copy link
Contributor

@andreasblumberg andreasblumberg commented Jan 7, 2020

Ticket

Description

document.body.classList.add('has-cookie-consent');
showCookieNotice();
var button = document.querySelector('[data-trigger-cookie-consent]');
console.log(button);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug code should be removed 😬 I also wonder why it's added in the dist script only 🤔 maybe added manually?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -3,21 +3,34 @@
return;
}

function addCookieSettingsButton() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function name is misleading as this function doesn't actually add a button but registers the click handler for it. IMO this doesn't necessarily needs to be in a dedicated function as it's invoked once. But we can leave it to move forward 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

referenced in issue and created a ticket for it to fast forward. #51

@andreasblumberg andreasblumberg merged commit c911048 into master Jan 8, 2020
@andreasblumberg andreasblumberg deleted the feature/reopen-cookie-notice-1154380372326297-andreas branch January 8, 2020 14:31
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.

3 participants