MCPcopy Index your code
hub / github.com/devforth/painterro / setParam

Function setParam

js/params.js:21–28  ·  view source on GitHub ↗
(name, val)

Source from the content-addressed store, hash-verified

19}
20
21export function setParam(name, val) {
22 settings[name] = val;
23 try {
24 localStorage.setItem(STORAGE_KEY, JSON.stringify(settings));
25 } catch (e) {
26 console.warn(`Unable save to localstorage: ${e}`);
27 }
28}
29
30function firstDefined(...vals) {
31 for (let i = 0; i < vals.length; i += 1) {

Callers 4

constructorMethod · 0.90
constructorMethod · 0.90
actionMethod · 0.90
buildShadowOnControlMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…