(raw?: string)
| 541 | } |
| 542 | |
| 543 | function 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 | |
| 552 | function ShareXFormFields(props: { store: { sharexConfig?: string; }; update: () => void; }) { |
| 553 | const { store, update } = props; |
no outgoing calls
no test coverage detected