Skip to content

Commit

Permalink
Merge pull request #19983 from abpframework/liangshiwei/account
Browse files Browse the repository at this point in the history
Check if redirectButton exists
  • Loading branch information
maliming committed Jun 6, 2024
2 parents 3ab663b + 5668b07 commit 36e1ee4
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
document.addEventListener('DOMContentLoaded', function (event) {
document.addEventListener("DOMContentLoaded", function (event) {
setTimeout(function () {
window.clientName = document.getElementById("redirectButton").getAttribute("cname");
window.location = document.getElementById('redirectButton').getAttribute('href');
}, 3000);
var redirectButton = document.getElementById("redirectButton");

if(!redirectButton){
return;
}

redirectButton.getAttribute("cname");
redirectButton.getAttribute("href");
}, 3000)
});

0 comments on commit 36e1ee4

Please sign in to comment.