PageSourceSearch

https://www.sushisushi.co.uk/cdn/shop/t/69/assets/component-recent…?v=183812568817299981201790111805

js sushisushi.co.uk collected 2026-10-02 10:25:40 UTC 1,841 bytes, 2 lines download raw bytes

1if(typeof RecentlyViewedProducts!="function"){class RecentlyViewedProducts2 extends HTMLElement{constructor(){super(),this.loadProductsFromLocalStorage=()=>{if(this.savedProducts=localStorage.getItem("recentlyViewedProducts"),this.savedProducts){let productsDOM="";JSON.parse(this.savedProducts).reverse().forEach(product=>{productsDOM+=product.product_item_markup});const section=this.querySelector("template").content.cloneNode(!0);section.querySelector("[data-js-recently-viewed-products-container]").innerHTML=productsDOM,this.append(section),this.querySelector("css-slider").destroySlider(),this.querySelector("css-slider").initSlider(),this.querySelectorAll("form").forEach(elm=>{elm.querySelector("template")&&elm.append(elm.querySelector("template").content.cloneNode(!0))})}else this.closest(".mount-recently-viewed-products").style.display="none"},document.addEventListener("DOMContentLoaded",this.loadProductsFromLocalStorage)}}typeof customElements.get("recently-viewed-products")>"u"&&customElements.define("recently-viewed-products",RecentlyViewedProducts2);const recentlyViewedProductsLimit=8,recentyViewedProductExists=(productId,products)=>products.some(product=>product.id===productId);if(window.location.pathname.includes("/products/")){const recentlyViewedProduct=window.recentlyViewedProduct,recentlyViewedProductsList=JSON.parse(localStorage.getItem("recentlyViewedProducts"))||[];recentyViewedProductExists(recentlyViewedProduct.id,recentlyViewedProductsList)||(recentlyViewedProductsList.length>=recentlyViewedProductsLimit&&recentlyViewedProductsList.shift(),recentlyViewedProductsList.push(recentlyViewedProduct),localStorage.setItem("recentlyViewedProducts",JSON.stringify(recentlyViewedProductsList)))}}
2//# sourceMappingURL=/cdn/shop/t/69/assets/component-recently-viewed.js.map?v=183812568817299981201790111805

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.