MCPcopy Create free account
hub / github.com/su-kaka/gcli2api / getValue

Function getValue

front/common.js:2784–2784  ·  view source on GitHub ↗
(id, def = '')

Source from the content-addressed store, hash-verified

2782async function saveConfig() {
2783 try {
2784 const getValue = (id, def = '') => document.getElementById(id)?.value.trim() || def;
2785 const getInt = (id, def = 0) => parseInt(document.getElementById(id)?.value) || def;
2786 const getFloat = (id, def = 0.0) => parseFloat(document.getElementById(id)?.value) || def;
2787 const getChecked = (id, def = false) => document.getElementById(id)?.checked || def;

Callers 1

saveConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected