MCPcopy
hub / github.com/github/awesome-copilot / getQueryParam

Function getQueryParam

website/src/scripts/utils.ts:248–251  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

246 * Read a single query parameter.
247 */
248export function getQueryParam(name: string): string {
249 if (typeof window === "undefined") return "";
250 return new URLSearchParams(window.location.search).get(name)?.trim() ?? "";
251}
252
253/**
254 * Read repeated query parameter values.

Callers 9

initSkillsPageFunction · 0.90
initInstructionsPageFunction · 0.90
initExtensionsPageFunction · 0.90
initAgentsPageFunction · 0.90
initToolsPageFunction · 0.90
initWorkflowsPageFunction · 0.90
initHooksPageFunction · 0.90
initPluginsPageFunction · 0.90
getQueryParamFlagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected