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

Added a regular site reload to recover from reddit closing the connection #28

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

2M1
Copy link

@2M1 2M1 commented Apr 3, 2022

No description provided.

@@ -67,7 +67,8 @@ const COLOR_MAPPINGS = {
duration: 10000
}).showToast();

setInterval(updateOrders, 5 * 60 * 1000); // Update orders elke vijf minuten.
setInterval(updateOrders, 5 * 60 * 1000); // Update orders every five minutes.
setInterval(reloadSite, 60 * 1000 * 60); // refresh the site every hour, because reddit sometimes disconnects...
Copy link

Choose a reason for hiding this comment

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

This does not need to be an interval, a timeout is enough :)

Copy link
Author

Choose a reason for hiding this comment

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

true, updated.

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