diff --git a/www/erupe/js/login.js b/www/erupe/js/login.js index cc714f2b7..a98f3ce69 100644 --- a/www/erupe/js/login.js +++ b/www/erupe/js/login.js @@ -9,7 +9,7 @@ function checkAuthResult() { var loginResult = window.external.getLastAuthResult(); console.log('|' + loginResult + '|'); if(loginResult == "AUTH_PROGRESS") { - setTimeout(checkAuthResult, 1500); + setTimeout(checkAuthResult, 500); } else if (loginResult == "AUTH_SUCCESS") { window.location.href = 'charsel.html' } else { @@ -18,7 +18,6 @@ function checkAuthResult() { } $(function() { - // Login form submission. $("#loginform").submit(function(e){ e.preventDefault(); @@ -35,4 +34,12 @@ $(function() { checkAuthResult(); }); + // Config button. + $("#configButton").click(function(){ + try{ + window.external.openMhlConfig(); + } catch(e){ + createErrorAlert("Error on openMhlConfig: " + e); + } + }); }); diff --git a/www/erupe/login.html b/www/erupe/login.html index 9adb944b4..170d1e77e 100644 --- a/www/erupe/login.html +++ b/www/erupe/login.html @@ -57,6 +57,7 @@ +