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

Implemented detection of outdated or not #90

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

darbyjack
Copy link

This is the first time I've used React, I know this isn't clean.

If someone who is good in JS would like to clean it up / make some changes, I'd be more than grateful.

@darbyjack
Copy link
Author

I have made the changes I think you asked for. If I missed something, I apologize. I noticed a flaw in the initial attempt where it would only set the latest stuff if they didn't have it cached. Now it's split up to

  1. Check if the regex matches
  2. Check if they have latest build number cached and use that
  3. Get latest build if it's not cached
  4. If on latest or not, set the flags

@darbyjack darbyjack marked this pull request as ready for review May 15, 2020 23:21
@darbyjack darbyjack requested a review from aikar May 15, 2020 23:21
Copy link
Owner

@aikar aikar left a comment

Choose a reason for hiding this comment

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

def dont want the dangerous html usage. this can be done the correct way with JSX.

- Got rid of the need to use dangerouslySetInnerHTML
- Changed the labels to not use strings and to actually set the values
@darbyjack darbyjack requested a review from aikar May 24, 2020 05:12
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.

2 participants