mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-01 10:58:06 +02:00
finish redirect if success returned 5x, via installer
This commit is contained in:
@@ -115,12 +115,14 @@ $('document').ready(function () {
|
||||
$('#launch .fa-spin').removeClass('hide');
|
||||
|
||||
$.post('/launch', function () {
|
||||
var checker = setInterval(function () {
|
||||
var successCount = 0;
|
||||
setInterval(function () {
|
||||
$.get('/admin').done(function () {
|
||||
clearInterval(checker);
|
||||
setTimeout(function () {
|
||||
if (successCount >= 5) {
|
||||
window.location = 'admin';
|
||||
}, 2000);
|
||||
} else {
|
||||
successCount += 1;
|
||||
}
|
||||
});
|
||||
}, 750);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user