MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / safeLocalStorageSet

Function safeLocalStorageSet

codebase/sources/dhtmlxscheduler.es.js:10334–10341  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

10332 }
10333 }
10334 function safeLocalStorageSet(key, value) {
10335 try {
10336 window.localStorage.setItem(key, value);
10337 return true;
10338 } catch (e) {
10339 return false;
10340 }
10341 }
10342 function readStoredState() {
10343 const storageKey = getStorageKey();
10344 const raw = safeLocalStorageGet(storageKey);

Callers 1

cookieFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected