1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +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

@@ -696,7 +696,7 @@ function schemaMousemove(event) {
const top = (event.clientY - y) / em;
const lineSet = { };
for (const div of qsa('div', that)) {
if (div.className == 'references') {
if (div.classList.contains('references')) {
const div2 = qs('[id="' + (/^refs/.test(div.id) ? 'refd' : 'refs') + div.id.substr(4) + '"]');
const ref = (tablePos[div.title] || [ div2.parentNode.offsetTop / em, 0 ]);
let left1 = -1;