This commit is contained in:
giles 2024-09-24 10:44:26 +01:00
parent 39c4a92f20
commit 73a3db7b0c
1 changed files with 17 additions and 0 deletions

View File

@ -42,3 +42,20 @@
> >
</div> </div>
<div
hx-get="shop/order/"
hx-trigger="load delay:1ms"
hx-target="#order-form-rose-ash-shop"
hx-swap="outerHTML"
hx-on::config-request="event.detail.path += window.location.search;"
hx-on::confirm="
console.log(window.location.search)
console.log('checking...')
if (new URLSearchParams(window.location.search).get('show') !== 'buy') {
event.preventDefault();
}
"
hx-swap="outerHTML"
></div>