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

Iss93 #126

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

Iss93 #126

wants to merge 2 commits into from

Conversation

chrliu719
Copy link
Contributor

Added a check in the patchShow function to check for internet. If there is no internet the user will be notified.

…re is no internet there will be an alert to notify the user.
Copy link
Collaborator

@theeldestelder theeldestelder left a comment

Choose a reason for hiding this comment

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

Change as it is is great because it gives a notification of no Internet. I would make the small changes suggested in my other comment so that everything works a little smoother.

@@ -85,6 +85,9 @@ function getUrl() {
// 4. Write the patch to patch.json
// 5. Apply the patch to the entire show
function patchShow() {
if (!navigator.onLine) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would move this into the next block of code directly under the
label.innerText = 'Fetching Google Sheet...'; line because this is part of that whole process. That way, errors thrown here should be caught by the promise.

I would also include a return; at the end of this if statement because we don't want to try and execute a request over the Internet when we know there's no Internet go send a request over

Copy link
Collaborator

Choose a reason for hiding this comment

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

You'll probably need to delete your local branch and checkout to a branch of the same name because @ByronAmbright force pushed to this branch to resolve some lingering commit issues. Let us know if you need help figuring out how to do that.

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