MCPcopy Create free account
hub / github.com/dajie111/nodeseek-userscript / readJSON

Function readJSON

notes.js:14–22  ·  view source on GitHub ↗
(key, fallback)

Source from the content-addressed store, hash-verified

12 };
13
14 function readJSON(key, fallback) {
15 try {
16 const raw = localStorage.getItem(key);
17 if (!raw) return fallback;
18 return JSON.parse(raw);
19 } catch (e) {
20 return fallback;
21 }
22 }
23
24 function writeJSON(key, value) {
25 try {

Callers 15

getLastSelectedNoteFunction · 0.85
cleanupStorageSpaceFunction · 0.85
ensureInitialDataFunction · 0.85
updateButtonTextsFunction · 0.85
saveColorHistoryFunction · 0.85
updateColorHistoryFunction · 0.85
buildDialogFunction · 0.85
renderCategoriesFunction · 0.85
restoreLastSelectedNoteFunction · 0.85
renderNotesFunction · 0.85
saveCurrentFunction · 0.85
addCategoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected