From 2ae852fb66b21c466f1c56168e64fd53ad5e261e Mon Sep 17 00:00:00 2001 From: Stefan Midjich Date: Mon, 13 Nov 2017 13:16:07 +0100 Subject: [PATCH] lower timeout will have to be tested on apple devices. --- static/js/captiveportal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/captiveportal.js b/static/js/captiveportal.js index b0995fc..9f9a8b9 100644 --- a/static/js/captiveportal.js +++ b/static/js/captiveportal.js @@ -33,7 +33,7 @@ function do_success() { url = 'http://' + url; } console.log('success: ' + url); - $('#error-box').html('

If you\'re not automatically redirected open your browser and try any website manually.

'); + $('#error-box').html('

If you\'re not automatically redirected click here.

'); $('#error-box').show(); $('#statusDiv').html(''); $('#approveButton').prop('disabled', false); @@ -146,7 +146,7 @@ function poll_jobs(data) { // Apple devices don't poll their captiveportal URL, // so this is for them. Android devices will do their // own polling and close the wifi-portal before this. - setTimeout(do_success, 10000); + setTimeout(do_success, 1000); } // This is reject() above.