PageSourceSearch

https://www.lyleandscott.com/cdn/shop/t/458/assets/lyle-recently-viewed.js?v=117788445139103816811788364385

js lyleandscott.com collected 2026-09-24 23:00:19 UTC 1,158 bytes, 2 lines download raw bytes

1const RECENTLY_VIEWED_KEY="previouslyViewedProducts",MAX_PRODUCTS=6;class LyleRecentlyViewed extends HTMLElement{connectedCallback(){try{const price=this.dataset.price?Number(this.dataset.price):0,compareAtPrice=this.dataset.compareAtPrice?Number(this.dataset.compareAtPrice):null,product={id:Number(this.dataset.id),handle:this.dataset.handle,title:this.dataset.title,url:this.dataset.url,featured_image:this.dataset.featuredImage||null,secondary_image:this.dataset.secondaryImage||null,alt_image:this.dataset.altImage||null,price,compare_at_price:compareAtPrice},raw=localStorage.getItem(RECENTLY_VIEWED_KEY),parsed=raw?JSON.parse(raw):[],filtered=(Array.isArray(parsed)?parsed:[]).filter(p=>p.handle!==product.handle);filtered.push(product),filtered.length>6&&filtered.splice(0,filtered.length-6),localStorage.setItem(RECENTLY_VIEWED_KEY,JSON.stringify(filtered)),document.dispatchEvent(new CustomEvent("recently-viewed:updated"))}catch{}}}customElements.get("lyle-recently-viewed")||customElements.define("lyle-recently-viewed",LyleRecentlyViewed);
2//# sourceMappingURL=/cdn/shop/t/458/assets/lyle-recently-viewed.js.map?v=117788445139103816811788364385

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.