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

Extract getCookie function into its own file #94

Merged
merged 1 commit into from
Apr 15, 2022
Merged

Extract getCookie function into its own file #94

merged 1 commit into from
Apr 15, 2022

Conversation

fernandoporazzi
Copy link
Contributor

@fernandoporazzi fernandoporazzi commented Apr 14, 2022

The getCookie function was being implemented a couple of times across the pages. The changes in this PR create a single implementation to retrieve a cookie value by name and imports the helper function whenever needed.

The getCookie function was being implemented a couple of times across the pages. These changes create a single implementation and imports the helper function whenever needed.
@Reckless-Satoshi
Copy link
Collaborator

Hey @fernandoporazzi,

Indeed, this was a bad hack early on that survived until now. This is probably also the case for other functions, I can recall pn() also being copy/pasted into the different components.

Will give it a check and merge once I have some time.

Happy to see a JS developer checking over the frontend components. Thanks a lot!

@Reckless-Satoshi Reckless-Satoshi merged commit 7bca5ec into RoboSats:main Apr 15, 2022
@fernandoporazzi fernandoporazzi deleted the extract-getcookie-function branch April 21, 2022 10:04
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.

None yet

2 participants