From 3dda0eedb5e068a8f46c2738507058e5c009e818 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Fri, 21 Jan 2022 23:26:36 +0400 Subject: [PATCH] Removed div and commented out code line. --- files/static/assets/js/main.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/files/static/assets/js/main.js b/files/static/assets/js/main.js index e39b7dc..f735943 100644 --- a/files/static/assets/js/main.js +++ b/files/static/assets/js/main.js @@ -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"; }