准备重构

This commit is contained in:
2025-10-11 22:05:25 +08:00
parent ebeb62f72d
commit f19fcac6c4
49 changed files with 154 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
function getStartUrl() {
const url = new URL(window.location.href);
const params = new URLSearchParams(url.search);
params.delete("delay");
return url.pathname + "?" + params.toString();
}
async function refresh() {
const ping_url = document.body.dataset.pingurl;
if (ping_url) {
await fetch(ping_url, {
method: "GET",
mode: "no-cors",
});
}
window.location.href = getStartUrl();
}

File diff suppressed because one or more lines are too long