MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getResponse

Function getResponse

src/dialogs/confirm.js:36–42  ·  view source on GitHub ↗
(confirmed)

Source from the content-addressed store, hash-verified

34 checkbox.classList.add("confirm-checkbox");
35 }
36 const getResponse = (confirmed) => {
37 if (!options.returnState) return confirmed;
38 return {
39 confirmed,
40 checked: Boolean(checkbox?.checked),
41 };
42 };
43 const okBtn = tag("button", {
44 textContent: strings.ok,
45 onclick: function () {

Callers 1

confirmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected