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) { |
document.addEventListener("DOMContentLoaded", function (event) { |
||||
setTimeout(function () { |
var timer = setTimeout(function () { |
||||
var redirectButton = document.getElementById("redirectButton"); |
var redirectButton = document.getElementById("redirectButton"); |
||||
|
if (!redirectButton) { |
||||
if(!redirectButton){ |
clearTimeout(timer); |
||||
return; |
return; |
||||
} |
} |
||||
|
var clientName = redirectButton.getAttribute("cname"); |
||||
redirectButton.getAttribute("cname"); |
if (!clientName) { |
||||
redirectButton.getAttribute("href"); |
window.clientName = clientName; |
||||
}, 3000) |
} |
||||
|
var href = redirectButton.getAttribute("href"); |
||||
|
if (!href) { |
||||
|
clearTimeout(timer); |
||||
|
return; |
||||
|
} |
||||
|
window.location = href; |
||||
|
clearTimeout(timer); |
||||
|
}, 3000); |
||||
}); |
}); |
||||
|
|||||
Loading…
Reference in new issue