MCPcopy
hub / github.com/FujiwaraChoki/MoneyPrinter / cancelGeneration

Function cancelGeneration

Frontend/app.js:257–269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

255}
256
257function cancelGeneration() {
258 const targetPath = activeJobId ? `/api/jobs/${activeJobId}/cancel` : "/api/cancel";
259
260 apiRequest(targetPath, {
261 method: "POST",
262 headers: {
263 "Content-Type": "application/json",
264 Accept: "application/json",
265 },
266 })
267 .then((data) => showToast(data.message, "success"))
268 .catch(() => showToast("Failed to cancel. Is the server running?", "error"));
269}
270
271async function uploadSongs() {
272 const files = songFiles.files;

Callers

nothing calls this directly

Calls 2

apiRequestFunction · 0.85
showToastFunction · 0.85

Tested by

no test coverage detected