hasSessionStorage function infrastructure ✓ 100.0%

Last updated: 2026-03-01T23:25:47.125Z

Metrics

LOC: 7 Complexity: 3 Params: 0 Coverage: 100.0% (1/1 lines, 49x executed)

Signature

hasSessionStorage(): : boolean

Source Code

function hasSessionStorage(): boolean {
  return (
    typeof chrome !== "undefined" &&
    !!chrome.storage &&
    !!chrome.storage.session
  );
}

No outgoing dependencies.

Impact (Incoming)

graph LR hasSessionStorage["hasSessionStorage"] initLogStore["initLogStore"] loadLogEntries["loadLogEntries"] clearLogEntries["clearLogEntries"] flushToStorage["flushToStorage"] initLogStore -->|calls| hasSessionStorage loadLogEntries -->|calls| hasSessionStorage clearLogEntries -->|calls| hasSessionStorage flushToStorage -->|calls| hasSessionStorage style hasSessionStorage fill:#dbeafe,stroke:#2563eb,stroke-width:2px click hasSessionStorage "a7e74519d0293203.html" click initLogStore "e592afd94ce8e81f.html" click loadLogEntries "62c6eec3d1dbde2c.html" click clearLogEntries "b955aae3387005ad.html" click flushToStorage "6a2d1616005381ca.html"
SourceType
initLogStore calls
loadLogEntries calls
clearLogEntries calls
flushToStorage calls