lower timeout will have to be tested on apple devices.

This commit is contained in:
Stefan Midjich 2017-11-13 13:16:07 +01:00
parent e9fb47fa17
commit 2ae852fb66

View file

@ -33,7 +33,7 @@ function do_success() {
url = 'http://' + url; url = 'http://' + url;
} }
console.log('success: ' + url); console.log('success: ' + url);
$('#error-box').html('<p>If you\'re not automatically redirected open your browser and try any website manually.</p>'); $('#error-box').html('<p>If you\'re not automatically redirected <a href="https://www.google.com/">click here</a>.</p>');
$('#error-box').show(); $('#error-box').show();
$('#statusDiv').html(''); $('#statusDiv').html('');
$('#approveButton').prop('disabled', false); $('#approveButton').prop('disabled', false);
@ -146,7 +146,7 @@ function poll_jobs(data) {
// Apple devices don't poll their captiveportal URL, // Apple devices don't poll their captiveportal URL,
// so this is for them. Android devices will do their // so this is for them. Android devices will do their
// own polling and close the wifi-portal before this. // own polling and close the wifi-portal before this.
setTimeout(do_success, 10000); setTimeout(do_success, 1000);
} }
// This is reject() above. // This is reject() above.