mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2026-08-26 02:04:50 +00:00
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user