This build was committed by a bot.

This commit is contained in:
github-actions[bot]
2026-01-16 19:26:37 +00:00
parent 7692b5334d
commit 711ed3c885
3 changed files with 8 additions and 4 deletions

View File

@@ -1335,7 +1335,10 @@ const USER = window.USER = { log: async (s) => {
localStorage.setItem("gcp_sa_json", v ? JSON.stringify(v) : "");
} };
async function init() {
el.threadRepoInput.value = localStorage.getItem("thread_repo_url") || "";
const u = localStorage.getItem("thread_repo_url") || "";
el.threadRepoInput.value = u;
el.threadFolderBtn.classList.toggle("hidden", !u.startsWith("gh://"));
el.threadBackBtn.classList.toggle("hidden", !u.startsWith("gh://") || u.split("/").length <= 3);
await THREAD.load();
await renderThreads();
renderSidebar();
@@ -1377,6 +1380,7 @@ const parseGhUrl = (u) => {
$(el.threadRepoInput).on("change", async () => {
const u = el.threadRepoInput.value.trim();
localStorage.setItem("thread_repo_url", u);
el.threadFolderBtn.classList.toggle("hidden", !u.startsWith("gh://"));
el.threadBackBtn.classList.toggle("hidden", !u.startsWith("gh://") || u.split("/").length <= 3);
await THREAD.load();
await renderThreads();