MCPcopy Create free account
hub / github.com/devforth/painterro / loadSettings

Function loadSettings

js/params.js:10–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8let settings = {};
9
10function loadSettings() {
11 try {
12 settings = JSON.parse(localStorage.getItem(STORAGE_KEY));
13 } catch (e) {
14 console.warn(`Unable get from localStorage: ${e}`);
15 }
16 if (!settings) {
17 settings = {};
18 }
19}
20
21export function setParam(name, val) {
22 settings[name] = val;

Callers 1

setDefaultsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…