MCPcopy Create free account
hub / github.com/BrainicHQ/DoHSpeedTest / readStoredJson

Function readStoredJson

script.js:79–87  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

77}
78
79function readStoredJson(key) {
80 try {
81 const stored = localStorage.getItem(key);
82 return stored ? JSON.parse(stored) : null;
83 } catch (error) {
84 console.warn(`Ignoring invalid stored settings for ${key}`, error);
85 return null;
86 }
87}
88
89function writeStoredJson(key, value) {
90 try {

Callers 2

loadStoredHostnamesFunction · 0.85
loadStoredDoHServersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected