mirror of
https://huihui.cat/mirrors/MikroTikPatch.git
synced 2025-12-10 03:24:37 +01:00
Update index.html
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
fe493a8f0f
commit
e5b8288b35
1 changed files with 5 additions and 2 deletions
|
|
@ -501,8 +501,11 @@
|
||||||
const ghProxyCheckbox = document.getElementById("gh-proxy");
|
const ghProxyCheckbox = document.getElementById("gh-proxy");
|
||||||
const clearCacheBtn = document.getElementById("clear-cache");
|
const clearCacheBtn = document.getElementById("clear-cache");
|
||||||
ghProxyCheckbox.checked = localStorage.getItem("gh-proxy-enabled") === "true";
|
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() {
|
function updateAllDownloadLinks() {
|
||||||
document.querySelectorAll('a[href*="github.com/elseif/MikroTikPatch"]').forEach(link => {
|
document.querySelectorAll('a[href*="github.com/elseif/MikroTikPatch"]').forEach(link => {
|
||||||
const isProxyEnabled = localStorage.getItem("gh-proxy-enabled") === "true";
|
const isProxyEnabled = localStorage.getItem("gh-proxy-enabled") === "true";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue