Removed div and commented out code line.

This commit is contained in:
Alexander Andreev 2022-01-21 23:26:36 +04:00
parent 72d6e835bb
commit 3dda0eedb5
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -20,7 +20,6 @@ function onvolumechange(e) {
const ext_filter = (ext, pathname) => pathname.toLowerCase().endsWith(ext);
function to_overlay(eltyp, pathname) {
const div = document.createElement("div");
const el = document.createElement(eltyp);
const el_label = document.createElement("span");
el_label.textContent = decodeURI(pathname.substr(pathname.lastIndexOf("/") + 1));
@ -33,7 +32,6 @@ function to_overlay(eltyp, pathname) {
el.src = pathname;
overlay.appendChild(el);
overlay.appendChild(el_label);
// overlay.appendChild(div);
overlay.style.visibility = "visible";
}