(url, options)
| 1 | async function fetchJSON(url, options) { |
| 2 | const res = await fetch(url, options); |
| 3 | if (!res.ok) throw new Error(await res.text()); |
| 4 | return res.json(); |
| 5 | } |
| 6 | |
| 7 | async function loadNotes(params = {}) { |
| 8 | const list = document.getElementById('notes'); |
no outgoing calls
no test coverage detected