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
500c7b5748
commit
8281f0193f
1 changed files with 1 additions and 1 deletions
|
|
@ -504,7 +504,7 @@
|
||||||
clearCacheBtn.style.display = ghProxyCheckbox.checked ? "inline-flex" : "none";
|
clearCacheBtn.style.display = ghProxyCheckbox.checked ? "inline-flex" : "none";
|
||||||
|
|
||||||
function updateAllDownloadLinks() {
|
function updateAllDownloadLinks() {
|
||||||
document.querySelectorAll('a[href*="github.com/elseif/MikroTikPatch"]').forEach(link => {
|
document.querySelectorAll('a[href*="github.com/elseif/MikroTikPatch/release/"]').forEach(link => {
|
||||||
const isProxyEnabled = localStorage.getItem("gh-proxy-enabled") === "true";
|
const isProxyEnabled = localStorage.getItem("gh-proxy-enabled") === "true";
|
||||||
const hasProxy = link.href.includes('gh-proxy.com');
|
const hasProxy = link.href.includes('gh-proxy.com');
|
||||||
if (isProxyEnabled && !hasProxy) {
|
if (isProxyEnabled && !hasProxy) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue