MCPcopy Create free account
hub / github.com/ScattrdBlade/bigFileUpload / readShareXConfigObject

Function readShareXConfigObject

settings.tsx:543–550  ·  view source on GitHub ↗
(raw?: string)

Source from the content-addressed store, hash-verified

541}
542
543function readShareXConfigObject(raw?: string): Record<string, unknown> {
544 try {
545 const parsed = JSON.parse(raw || "{}");
546 return parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed as Record<string, unknown> : {};
547 } catch {
548 return {};
549 }
550}
551
552function ShareXFormFields(props: { store: { sharexConfig?: string; }; update: () => void; }) {
553 const { store, update } = props;

Callers 4

ShareXFormFieldsFunction · 0.85
setFieldFunction · 0.85
applyHeadersFunction · 0.85
applyArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected