mirror of
https://codeberg.org/prof_x_pvt_ltd/captive.whump.shanti-portal
synced 2024-08-14 22:46:42 +00:00
lower timeout will have to be tested on apple devices.
This commit is contained in:
parent
e9fb47fa17
commit
2ae852fb66
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue