* userJS: fix redirect error.

This commit is contained in:
liugang
2023-11-28 17:05:03 +08:00
parent d4fd478749
commit c7ff582b10
+1 -1
View File
@@ -5,7 +5,7 @@ $(function()
setInterval(function()
{
var time = $('#time').text();
if(time == 0) window.location.href = $('.alert-info .btn').attr('href');
if(time == 0) window.location.href = $('#redirect').attr('href');
$('#time').text(time - 1 <= 0 ? 0 : time - 1);
}, 1000);
}