From 430a36d3ca1b24adf0db3412a03825e858642513 Mon Sep 17 00:00:00 2001 From: Nathan Schneider Date: Sun, 18 Oct 2026 22:01:01 -0600 Subject: [PATCH] Remove API key prompt from custom.js --- assets/custom.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/assets/custom.js b/assets/custom.js index 2a0f1df..c1e15e4 100644 --- a/assets/custom.js +++ b/assets/custom.js @@ -1,17 +1,10 @@ // Auto‑load saved image‑generation API key into the MCP input field. -// If no key is stored, prompt the user once and persist it in localStorage. +// If the user has previously stored a key, it will be inserted; otherwise nothing is shown. window.addEventListener('load', () => { const storageKey = 'image_api_key'; - let savedKey = localStorage.getItem(storageKey); - if (!savedKey) { - // Prompt user only once per browser session - savedKey = prompt('Enter your Inference Co‑op image‑generation API key (will be saved locally):'); - if (savedKey) { - localStorage.setItem(storageKey, savedKey); - } - } + const savedKey = localStorage.getItem(storageKey); if (savedKey) { const icInput = document.querySelector('input[name="IC_API_KEY"]'); if (icInput) icInput.value = savedKey; } -}); +}); \ No newline at end of file