diff options
author | Marvin Borner | 2019-04-13 19:59:48 +0200 |
---|---|---|
committer | Marvin Borner | 2019-04-13 19:59:48 +0200 |
commit | 9e91d7e8cd3a3cdfee7f4d10347f48980eeaae93 (patch) | |
tree | 3b6e129153a83a88b9f1f85ae35bfe711bced3c5 /src/main/resources/js | |
parent | 407cd889cada0154faaa06ff4372e237cf260cf7 (diff) |
Added support for multiple roles per user
Diffstat (limited to 'src/main/resources/js')
-rw-r--r-- | src/main/resources/js/login.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/resources/js/login.js b/src/main/resources/js/login.js index f4e2bce..aa991db 100644 --- a/src/main/resources/js/login.js +++ b/src/main/resources/js/login.js @@ -1,7 +1,8 @@ const tryAgain = document.getElementById("tryAgain"); const countdown = document.getElementById("counter"); -setInterval(() => { - if (Number(countdown.innerText) === 0) tryAgain.style.display = "none"; - countdown.innerText = Number(countdown.innerText) - 1; -}, 1000); +if (tryAgain !== null) + setInterval(() => { + if (Number(countdown.innerText) === 0) tryAgain.style.display = "none"; + countdown.innerText = Number(countdown.innerText) - 1; + }, 1000); |