Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Issue with reconnecting #15

Closed
hatpick opened this issue Oct 31, 2013 · 1 comment
Closed

Issue with reconnecting #15

hatpick opened this issue Oct 31, 2013 · 1 comment

Comments

@hatpick
Copy link

hatpick commented Oct 31, 2013

"Your computer lost its internet connection" message stays up after reconnecting to the internet.

this is the options:
Offline.options = {
checks: {
xhr: {url: 'http://google.com'}
},
active: 'xhr'
};

however offlinejs still tries to work with the image approach.

@zackbloom
Copy link
Contributor

active needs to be inside the checks section.

Also, checking google.com is probably not going to work, as it's going to run into the CORS protections built into the browser. You need to be checking a url on the same host and port as the page.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants