Remove project OAuth hardcodes

This commit is contained in:
Your Name
2026-08-03 17:23:51 +05:00
parent cf12aa0df8
commit f2effe002d
6 changed files with 118 additions and 16 deletions
+18
View File
@@ -393,4 +393,22 @@
</details>
{% endfor %}
</div>
<script>
(() => {
const scrollKey = "workers-scroll-y";
const restoreY = sessionStorage.getItem(scrollKey);
if (restoreY !== null) {
sessionStorage.removeItem(scrollKey);
requestAnimationFrame(() => window.scrollTo(0, Number(restoreY) || 0));
}
document.addEventListener("submit", (event) => {
const form = event.target;
if (!(form instanceof HTMLFormElement)) return;
const action = form.getAttribute("action") || "";
if (action.startsWith("/workers") || action.startsWith("/settings") || action.includes("-schedule/")) {
sessionStorage.setItem(scrollKey, String(window.scrollY));
}
}, true);
})();
</script>
{% endblock %}