PageSourceSearch

https://www.hannoush.com/cdn/shop/t/40/assets/recently-viewed-products.js?v=171351265673933714661779931333

js hannoush.com collected 2026-09-24 12:06:55 UTC 1,304 bytes, 2 lines download raw bytes

1if(!customElements.get("recently-viewed-products")){class RecentlyViewedProducts extends HTMLElement{constructor(){if(super(),this.url=theme.routes.search_url+"?view=recently-viewed&type=product&q=",this.container=this.querySelector(".products"),this.currentId=this.dataset.productHandle,this.max=4,this.products="",window.localStorage){let recentIds=window.localStorage.getItem("recently-viewed");recentIds&&typeof recentIds!==void 0&&(window.recentlyViewedIds=JSON.parse(recentIds))}}connectedCallback(){this.buildUrl()}buildUrl(){let i=0;window.recentlyViewedIds.forEach(val=>{val!==this.currentId&&(i>=this.max||(this.products+="handle:"+val+" OR ",i++))}),this.url=this.url+encodeURIComponent(this.products),this.fetchProducts()}fetchProducts(){fetch(this.url).then(response=>response.text()).then(text=>{const html=document.createElement("div");html.innerHTML=text;const recommendations=html.querySelector(".products");recommendations&&recommendations.innerHTML.trim().length&&(this.container.innerHTML=recommendations.innerHTML,this.classList.add("product-recommendations--loaded"))}).catch(e=>{console.error(e)})}}customElements.define("recently-viewed-products",RecentlyViewedProducts)}
2//# sourceMappingURL=/cdn/shop/t/40/assets/recently-viewed-products.js.map?v=171351265673933714661779931333

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.