MCPcopy
hub / github.com/bestony/logoly / hasLocalStorage

Function hasLocalStorage

src/utils/persistentState.js:17–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15const hasLocation = () => hasWindow() && typeof window.location !== 'undefined';
16const hasHistory = () => hasWindow() && typeof window.history?.replaceState === 'function';
17const hasLocalStorage = () => hasWindow() && typeof window.localStorage !== 'undefined';
18
19const isString = (value) => typeof value === 'string';
20

Callers 2

readFromStorageFunction · 0.85
saveGeneratorStateFunction · 0.85

Calls 1

hasWindowFunction · 0.85

Tested by

no test coverage detected