1function getSessionStorage() { 2 try { 3 return window.sessionStorage; 4 } catch (_error) { 5 return null; 6 } 7} 8 9function buildSessionKey(key, brand) { 10 return brand ? `${brand}:${key}` : key; 11} 12 13export function isSessionFlagSet(key, brand = '') { 14 const storage = getSessionStorage(); 15 if (!storage) { 16 return false; 17 } 18 19 return storage.getItem(buildSessionKey(key, brand)) === 'true'; 20} 21 22export function setSessionFlag(key, value, brand = '') { 23 const storage = getSessionStorage(); 24 if (!storage) { 25 return; 26 } 27 28 storage.setItem(buildSessionKey(key, brand), String(value)); 29} 30 31export default { 32 isSessionFlagSet, 33 setSessionFlag, 34};
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.