PageSourceSearch

https://pollunit.com/assets/modules/safeLocalStorage-79e1cf849a24d…54f85ff1907fa2524539a2e8d999a94257070ded.js

js pollunit.com collected 2026-10-02 10:31:26 UTC 951 bytes, 1 lines download raw bytes

1class SafeLocalStorage{constructor(){this.isAvailable=this._checkAvailability()}_checkAvailability(){try{const t="__storage_test__";return window.localStorage.setItem(t,t),window.localStorage.removeItem(t),!0}catch(t){return console.warn("localStorage not available:",t),!1}}set(t,e){if(!this.isAvailable)return!1;try{return window.localStorage.setItem(t,JSON.stringify(e)),!0}catch(t){return console.warn("Could not write to localStorage:",t),!1}}get(t,e="string",r=null){if(!this.isAvailable)return r;try{const a=window.localStorage.getItem(t);if(null===a)return r;let o=null;try{o=JSON.parse(a)}catch{o=a}switch(e){case"boolean":return Boolean(!0===o||"true"===o||1===o||"1"===o);case"number":return Number(o)||0;case"string":return String(o);case"object":return"object"==typeof o?o:r;default:return console.warn("Unkown Typ:",e),r}}catch(t){return console.warn("Can not read from localStorage:",t),r}}}window.safeLocalStorage=new SafeLocalStorage;

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.