Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
saadeghi committed Jun 27, 2024
1 parent bfa2215 commit f84f59c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/docs/src/routes/(docs)/store/redirect/+page@.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ function validate_id({ input, length }) {
return null
}
const product_id = validate_id({ input: $page.url.searchParams.get("product_id"), length: 36 })
// const aff = validate_id({ input: $page.url.searchParams.get("aff"), length: 5 })
let product_id
onMount(() => {
product_id = validate_id({ input: $page.url.searchParams.get("product_id"), length: 36 })
window.location.href = `https://daisyui.lemonsqueezy.com/checkout/buy/${product_id}?aff_ref=${LemonSqueezy.Affiliate.GetId()}`
})
</script>
Expand Down
File renamed without changes.

0 comments on commit f84f59c

Please sign in to comment.