1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-11-05 06:16:16 +00:00

Fixed alertbox

This commit is contained in:
jcorporation 2018-07-05 21:11:07 +01:00
parent c494359a69
commit 51b02152be

View File

@ -1344,7 +1344,8 @@ function showNotification(notificationTitle,notificationText,notificationHtml,no
if (alertTimeout)
clearTimeout(alertTimeout);
alertTimeout = setTimeout(function() {
document.getElementById('alertBox').classList.remove('alertBoxActive');
if (document.getElementById('alertBox'))
document.getElementById('alertBox').classList.remove('alertBoxActive');
setTimeout(function() {
document.getElementById('alertBox').remove();
}, 600);