From e5b8288b35a19faf85367cc63be9f0f700764d55 Mon Sep 17 00:00:00 2001 From: elseif Date: Fri, 19 Sep 2025 12:23:54 +0800 Subject: [PATCH] Update index.html Signed-off-by: elseif --- index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 5fcdf51..3c6d828 100644 --- a/index.html +++ b/index.html @@ -501,8 +501,11 @@ const ghProxyCheckbox = document.getElementById("gh-proxy"); const clearCacheBtn = document.getElementById("clear-cache"); ghProxyCheckbox.checked = localStorage.getItem("gh-proxy-enabled") === "true"; - clearCacheBtn.style.display = ghProxyCheckbox.checked ? "block" : "none"; - + if (ghProxyCheckbox.checked) { + clearCacheBtn.style.removeProperty("display"); + } else { + clearCacheBtn.style.display = "none"; + } function updateAllDownloadLinks() { document.querySelectorAll('a[href*="github.com/elseif/MikroTikPatch"]').forEach(link => { const isProxyEnabled = localStorage.getItem("gh-proxy-enabled") === "true";