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

Good job setting up polling #8

Closed
Razpudding opened this issue May 27, 2017 · 1 comment
Closed

Good job setting up polling #8

Razpudding opened this issue May 27, 2017 · 1 comment

Comments

@Razpudding
Copy link

That's pretty cool, you figured out how to load new info every 60 seconds. You should probably add a check though, to see if a username has been filled in after a minute. Now when you leave the page open without doing anything it tries to get the data for an empty user and that generates an error.

@gmamar
Copy link
Owner

gmamar commented May 27, 2017

Yeeeeh, you are right.
I edit it to contain if condition to check input field value.
if (srcEntry.value !== null && srcEntry.value !== "")

@gmamar gmamar closed this as completed May 27, 2017
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

No branches or pull requests

2 participants