()
| 127 | } |
| 128 | |
| 129 | export async function update() { |
| 130 | return fetch("/api/update", { |
| 131 | method: "PUT", |
| 132 | headers: { |
| 133 | "X-CSRFToken": getCsrfToken(), |
| 134 | }, |
| 135 | mode: "same-origin", |
| 136 | cache: "no-cache", |
| 137 | redirect: "error", |
| 138 | }).then(processJsonResponse); |
| 139 | } |
| 140 | |
| 141 | export async function getUpdateStatus() { |
| 142 | return fetch("/api/update", { |
nothing calls this directly
no test coverage detected