Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- PAGEFLY CART HELPER - DO NOT DELETE -->
- <script>
- window.addEventListener("load", () => {
- try {
- window.__pagefly_helper_store__ &&
- window.__pagefly_helper_store__.subscribe(function (r) {
- async function fetchData() {
- const response = await fetch(
- "/?sections=cart-notification-product,cart-notification-button,cart-drawer,cart-icon-bubble"
- );
- const sections = await response.json();
- const cartDrawer =
- document.querySelector("cart-notification") ||
- document.querySelector("cart-drawer");
- cartDrawer.classList.remove("is-empty");
- r.sections = sections;
- cartDrawer.renderContents(r);
- }
- fetchData();
- });
- } catch (e) {
- console.error("PF Error: ", e);
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement