1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 22:56:46 +02:00

JS: Use classList instead of className

This commit is contained in:
Jakub Vrana
2025-03-23 15:10:18 +01:00
parent e8055329a6
commit 03ff0bbc04
5 changed files with 6 additions and 6 deletions

View File

@@ -32,7 +32,7 @@ function whisper(url) {
const a = field.nextSibling.firstChild;
if (a && a.firstChild.data == field.value) {
field.previousSibling.value = decodeURIComponent(a.href.replace(/.*=/, ''));
a.className = 'active';
a.classList.add('active');
}
}
});