()
| 5 | }; |
| 6 | |
| 7 | export async function loadConfig() { |
| 8 | try { |
| 9 | const res = await fetch(state.API_BASE + "/api/config"); |
| 10 | state.config = await res.json(); |
| 11 | return state.config; |
| 12 | } catch (err) { |
| 13 | console.error("Failed to load config:", err); |
| 14 | throw err; |
| 15 | } |
| 16 | } |
no outgoing calls
no test coverage detected