Add files via upload
This commit is contained in:
parent
2a8ed0782c
commit
2dac0e7e0e
19
ASAshop.html
19
ASAshop.html
|
|
@ -460,7 +460,26 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
// --- clear cart helper ---
|
||||
function clearCart() {
|
||||
try { localStorage.removeItem('asa_cart'); } catch { }
|
||||
if (window.state && state.cart) {
|
||||
state.cart = {};
|
||||
if (typeof renderCart === 'function') renderCart();
|
||||
}
|
||||
}
|
||||
|
||||
// --- clear on successful return from Stripe ---
|
||||
(function () {
|
||||
const qp = new URLSearchParams(location.search);
|
||||
if (qp.get('ok') === '1') {
|
||||
clearCart();
|
||||
// optional: remove ?ok=1 from the URL bar
|
||||
history.replaceState(null, '', location.pathname);
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
<script>
|
||||
const API = "https://affiliated-lets-automatic-oak.trycloudflare.com";
|
||||
const CAPACITY_IDS = new Set(['server1', 'server2', 'server3']);
|
||||
|
|
|
|||
Loading…
Reference in New Issue