()
| 121 | // ── URL State ──────────────────────────────────────────────────────────────── |
| 122 | |
| 123 | function getURLParams() { |
| 124 | const p = new URLSearchParams(window.location.search); |
| 125 | return { |
| 126 | prompt: p.get("prompt"), |
| 127 | image: p.get("image"), |
| 128 | model: p.get("model"), |
| 129 | }; |
| 130 | } |
| 131 | |
| 132 | function setURLPrompt(prompt) { |
| 133 | const url = new URL(window.location); |