Issue with hotspots / open zones
sadikyalcin opened this issue · 0 comments
sadikyalcin commented
If you connect to a router that requires you to login I.E. hotspots or open zones, Offline returns online but connection fails of course because you can't actually get past the router.
At this stage the plugin returns a 405 Method Not Allowed but state is UP. Can I set the state to offline in such case?
Offline.options = {
checkOnLoad: false, checks: {
xhr: {
url: '...'
}
},
reconnect: {
initialDelay: 15
}
};
Offline.check();
Offline.on('down', function() {
console.log('Offline');
});
Offline.on('up', function() {
console.log('Online');
});