PageSourceSearch

https://gldn.com/cdn/shop/t/886/assets/recently-viewed-products.js?v=174461123446130215481790180390

js gldn.com collected 2026-09-24 18:16:14 UTC 895 bytes, 2 lines download raw bytes

1export class RecentlyViewed{static#STORAGE_KEY="viewedProducts";static#MAX_PRODUCTS=4;static addProduct(productId){let viewedProducts=this.getProducts();viewedProducts=viewedProducts.filter(id=>id!==productId),viewedProducts.unshift(productId),viewedProducts=viewedProducts.slice(0,this.#MAX_PRODUCTS);try{localStorage.setItem(this.#STORAGE_KEY,JSON.stringify(viewedProducts))}catch(e){console.warn("localStorage unavailable for key",this.#STORAGE_KEY,e)}}static clearProducts(){try{localStorage.removeItem(this.#STORAGE_KEY)}catch(e){console.warn("localStorage unavailable for key",this.#STORAGE_KEY,e)}}static getProducts(){try{return JSON.parse(localStorage.getItem(this.#STORAGE_KEY)||"[]")}catch(e){return console.warn("localStorage unavailable for key",this.#STORAGE_KEY,e),[]}}}
2//# sourceMappingURL=/cdn/shop/t/886/assets/recently-viewed-products.js.map?v=174461123446130215481790180390

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.