From 7e3aca679b374cc3773b3b8d708c088c2d26e23a Mon Sep 17 00:00:00 2001 From: vcheckzen <18008498+vcheckzen@users.noreply.github.com> Date: Thu, 3 Oct 2024 03:54:52 +0800 Subject: [PATCH] chores --- front-end/index.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/front-end/index.html b/front-end/index.html index 7d251e6d..b46c2d3b 100644 --- a/front-end/index.html +++ b/front-end/index.html @@ -739,9 +739,6 @@ } renderTreeNode(files); } - if (document.body.getAttribute('hidden')) { - document.body.removeAttribute('hidden'); - } document.querySelector('.loading-wrapper').style.display = 'none'; } @@ -1326,7 +1323,6 @@ const pre = document.createElement('pre'); pre.style.background = 'rgb(245,245,245)'; pre.style.padding = '5px'; - content.style.textAlign = 'initial'; content.innerHTML = ''; content.append(pre); pre.textContent = data; @@ -1427,6 +1423,7 @@ switchBackForwardStatus(window.api.root); }); } + function addFileUploadListener() { const fileInput = document.querySelector('.file-upload-input'); const fileNameDisplay = document.querySelector('.file-upload-name'); @@ -1442,6 +1439,7 @@ } }); } + function switchRightDisplay(display) { for (const c of document.querySelector('.right').children) { c.dataset.hidden = '1';