mirror of https://github.com/abpframework/abp.git
committed by
GitHub
1 changed files with 15 additions and 7 deletions
@ -1,12 +1,20 @@ |
|||
document.addEventListener("DOMContentLoaded", function (event) { |
|||
setTimeout(function () { |
|||
var timer = setTimeout(function () { |
|||
var redirectButton = document.getElementById("redirectButton"); |
|||
|
|||
if(!redirectButton){ |
|||
if (!redirectButton) { |
|||
clearTimeout(timer); |
|||
return; |
|||
} |
|||
|
|||
redirectButton.getAttribute("cname"); |
|||
redirectButton.getAttribute("href"); |
|||
}, 3000) |
|||
var clientName = redirectButton.getAttribute("cname"); |
|||
if (!clientName) { |
|||
window.clientName = clientName; |
|||
} |
|||
var href = redirectButton.getAttribute("href"); |
|||
if (!href) { |
|||
clearTimeout(timer); |
|||
return; |
|||
} |
|||
window.location = href; |
|||
clearTimeout(timer); |
|||
}, 3000); |
|||
}); |
|||
|
|||
Loading…
Reference in new issue