PageSourceSearch

https://www.iconika.mx/cdn/shop/t/6/assets/util.storage.js?v=165714144265540632071777324148

js iconika.mx collected 2026-09-25 20:40:45 UTC 851 bytes, 2 lines download raw bytes

1export function hasLocalStorage(){const testKey="localStorageTestKey",testValue="test";try{return localStorage.setItem(testKey,testValue),localStorage.removeItem(testKey),!0}catch{return!1}}export function setLocalStorage(key,value,expiryDays){if(!hasLocalStorage())return!1;const item={value,expiry:new Date().getTime()+expiryDays*24*60*60*1e3};try{return localStorage.setItem(key,JSON.stringify(item)),!0}catch{return!1}}export function getLocalStorage(key){if(!hasLocalStorage())return null;try{const itemStr=localStorage.getItem(key);if(!itemStr)return null;const item=JSON.parse(itemStr);return item&&typeof item=="object"&&"value"in item&&"expiry"in item?Date.now()>item.expiry?(localStorage.removeItem(key),null):item.value:item}catch{return null}}
2//# sourceMappingURL=/cdn/shop/t/6/assets/util.storage.js.map?v=165714144265540632071777324148

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.