Skip to content

Commit

Permalink
support querystring
Browse files Browse the repository at this point in the history
  • Loading branch information
yujonglee committed Jun 5, 2024
1 parent 6c1bcbf commit 0aa4b0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
const RESOURCE_PATH = `litellm/${RESOURCE_NAME}`;
onMount(() => {
const urlParams = new URLSearchParams(window.location.search);
query = urlParams.get("q") || "";
fetch(
`https://raw.githubusercontent.com/${REPO_FULL_NAME}/main/${RESOURCE_PATH}`,
)
Expand Down

0 comments on commit 0aa4b0d

Please sign in to comment.