-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Conversation
…re is no internet there will be an alert to notify the user.
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Added a check in the patchShow function to check for internet. If there is no internet the user will be notified.