mirror of
https://github.com/elseif/MikroTikPatch
synced 2026-07-17 18:49:41 +00:00
Update index.html
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
9b92fc3fa6
commit
6d27075389
@ -847,7 +847,7 @@
|
|||||||
function updateCommand(version) {
|
function updateCommand(version) {
|
||||||
const tool = document.querySelector('input[name="tool"]:checked').value;
|
const tool = document.querySelector('input[name="tool"]:checked').value;
|
||||||
let cmd;
|
let cmd;
|
||||||
const proxy = `${localStorage.getItem("gh-proxy-enabled") === "true"?" | sed 's#https://github.com#https:/gh-proxy.com/https://github.com#g'":""}`;
|
const proxy = `${localStorage.getItem("gh-proxy-enabled") === "true"?" | sed 's#https://github.com#https://gh-proxy.com/https://github.com#g'":""}`;
|
||||||
if (tool === "curl") {
|
if (tool === "curl") {
|
||||||
cmd = `<pre ${proxy === ""?"":"style='font-size:12px'"}><span class="bash">curl</span> <span class="url">https://mikrotik.ltd/chr.sh</span>${proxy} | <span class="bash">bash</span> -s <span class="version">${version}</span></pre>`;
|
cmd = `<pre ${proxy === ""?"":"style='font-size:12px'"}><span class="bash">curl</span> <span class="url">https://mikrotik.ltd/chr.sh</span>${proxy} | <span class="bash">bash</span> -s <span class="version">${version}</span></pre>`;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user