MCPcopy Create free account
hub / github.com/pollinations/pollinations / getURLParams

Function getURLParams

apps/catgpt/script.js:123–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121// ── URL State ────────────────────────────────────────────────────────────────
122
123function 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
132function setURLPrompt(prompt) {
133 const url = new URL(window.location);

Callers 1

script.jsFile · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected