Skip to content

Commit

Permalink
feat: fetch data from query params
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenrinzema committed Jan 13, 2025
1 parent fd98bf1 commit bb0defe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/App.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<script lang="ts">
const patient = "5432";
const clinician = "xyz";
const drug = "semaglutide-compound";
const params = new URLSearchParams(window.location.search);
const patient = params.get("patient") || "";
const clinician = params.get("clinician") || "";
const drug = params.get("drug") || "";
import "@iframe-resizer/child";
Expand Down

0 comments on commit bb0defe

Please sign in to comment.