Browse Source

Merge pull request #19983 from abpframework/liangshiwei/account

Check if redirectButton exists
pull/19984/head
maliming 2 years ago
committed by GitHub
parent
commit
36e1ee4d4c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 14
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.js

14
modules/account/src/Volo.Abp.Account.Web/Pages/Account/LoggedOut.js

@ -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)
});

Loading…
Cancel
Save